• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get user IP

 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

hello..

I have created an application...
usingn jsp and I want to cath the IP of the user who is acessing
the my application
how can I used it....
 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this out:
request.getRemoteAddr();
It returns the IP address from which the resource have been requested. Returns as a String.
Best of luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!