title: How do I get the client name from a socket in Java?
body: <p>Sorry, simple question...but I can't find the answer anywhere using google or in textbooks! I have a simple server, to which a user connects via a socket in java. I want to use this Java socket to retrieve the users client name, is this possible ?</p>
  
  <p>I know I can use the getInetAddress() method to returns the address to which the socket is connected, but that isn't really what I want. Is there any easy way of doing this ?</p>
  
  <p>Thank you.</p>