Can I get the IP address and Computer Name through Servlets (Prortocal Manager) ??
Sanjay Bahrani
Ranch Hand
Joined: Apr 17, 2001
Posts: 38
posted
0
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
posted
0
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