Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

information of remote server

 
ajay tiwari
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
all i am interested to know about the information of remote server like IP Address(to which we conect) not of local system plz some one help me.
thanu
 
Joe Ess
Bartender
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't you need the IP address in order to connect? If you are looking for a host lookup from IP or vice-versa, take a look at java.net.InetAddress
 
Paul Santa Maria
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you want to know the IP address of the remote host in an open socket connection, you might wish to look here:

http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html
<= getINetAddress(), etc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic