I found out that the Server application creates a ServerSocket in a specific port,
ServerSocket ServerSock=new ServerSocket(9000);
and the client makes a socket connection to the server application,
Socket sock=new Socket("127.0.0.1","9000");
Thus, the client knows the IP address and port of the server, I am confused how and when the server receives information about the client. Please, help.
Thanks in advance!
source
share