Hi Everyone,
My question is how to find the machine name of a client connected to my
server.....The server and client will be
inside a LAN.
The code I used was.....
System.out.println("We serviced a client from IP:" + client.getInetAddress
() );
System.out.println("Client's host name:" + ((client.getInetAddress
()).getHostName() ) );
But the output I got was....
We serviced a client from IP:10.32.16.155/10.32.16.155
Client's host name:10.32.16.155
Is there a way to find the host name?
Any information in this regard is appreciated.....
Thanks in advance,
Vivin.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html