This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes information of remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "information of remote server" Watch "information of remote server" New topic
Author

information of remote server

ajay tiwari
Greenhorn

Joined: Jan 20, 2005
Posts: 10
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

Joined: Oct 29, 2001
Posts: 8843
    
    7

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
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
 
 
subject: information of remote server
 
Similar Threads
Creating and saving txt file to a remote server
NX: (contractors)Server start/stop.
RMI object
remote reference
Problem in executing remote Java Swing client of an EJB application