Port number
4 answers
No. You will send to a known port number, but your client side port number will be essentially random. This means that multiple clients can send to the same server using different client-side port numbers, but only one known server number.
eg. if you have multiple clients on the same machine talking to a remote web server it would look like this:
localhost:31000 -> webserver:80
localhost:31001 -> webserver:80
localhost:31002 -> webserver:80
and you will only need to specify the webserver: 80 command. The client side numbers are ephemeral (see here for more information)
+2
a source to share
No.
It works like this
- The client machine wants to talk to the server machine to know the port on the server machine, for example port 80 for http
- The client machine opens a connection to the server machine. this is open on a random port on the client, but to a known port number on the server
- The server sends back along this pipe until the port number the client reports it, a random one he opened
+1
a source to share