Hi,
I have the same doubt as Mat Matthew. In Sun's Java tutorial, they have specifically said about the new port the server uses.
"If everything goes well, the server accepts the connection. Upon acceptance, the server gets a new socket bound to a different port. It needs a new socket (and consequently a different port number) so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client."
But, the socket created by the server's accept() prints out the same port number. Why is this ?
Thanks
Srini