File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8834
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: information of remote server
 
Similar Threads
NX: (contractors)Server start/stop.
RMI object
remote reference
Problem in executing remote Java Swing client of an EJB application
Creating and saving txt file to a remote server