I am writing a server application and I want to get the host name of the connecting client, how will I do this in java?
clientSocket.getInetAddress().getHostName() continues to give me an IP address instead of a host name, what's wrong?
where ClientSocket is an SSLSocket or Socket.
source share