File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 1506
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??
 
Similar Threads
Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??
Java /Oracle (IPAddress)
api to remote internet IP and local IP address of my computer
Problem getting local ip address
How to obtain the destination machine information