get remote host name

  
Is it possible to get remote host name instead of IP address? This is on javastack