How do you track Ip in Java ?

Questions by jashlok   answers by jashlok

Showing Answers 1 - 3 of 3 Answers

ravi_1229

  • Mar 24th, 2008
 


try this piece of code:
   java.net.InetAddress remoteInetAddress = java.net.InetAddress.getByName(request.getRemoteHost());
   String client=remoteInetAddress.getHostName();
   System.out.print(client);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions