Hi Im trying to figure out how to display the IP and port number of a client who has sent data to a server program that I wrote.
In my server program I've been able to display my IP and my servers port number with the following code:
Code:InetAddress myIp =InetAddress.getLocalHost();
System.out.println("Listening Port: " + serverSocket.getLocalPort() );
System.out.println("IP: " + myIp.getHostAddress() );
But how would I display the information on the clients side? I need the server to show what port and IP the client is using.

