GeeCON Prague 2014*
The moose likes Servlets and the fly likes Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??" Watch "Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??" New topic
Author

Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??

Sanjay Bahrani
Ranch Hand

Joined: Apr 17, 2001
Posts: 38
Hi there,
Can I get the IP address and the Computer Name using servlets.
For eg. I am Sitting on the server and the requests come from a client(Using Servlets) can I get the computer name & IP address of a client who is sending me the request . If yes Plz. reply me.
Thankz.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can use the methods getRequestURI and get to return the part the URL after the host and port. I am not a sure if there is a method to get the computer name.
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Sanjay,
Please check out this discussion. http://www.javaranch.com/ubb/Forum7/HTML/002047.html
regds
maha anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??