View Single Post
  #2 (permalink)  
Old 12-24-2008, 08:58 AM
dswastik dswastik is offline
Senior Member
 
Join Date: Dec 2008
Posts: 164
Rep Power: 2
dswastik is on a distinguished road
Default
Have a look on getInetAddress() method of Socket class, which returns a reference to InetAddress class , and getHostAddress() method of InetAddress class which returns a textual representation of IP address of the remote machine to which the socket is connected.
Reply With Quote