• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IP Address

 
Samuel Lugo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Does anyone know how to get the IP address of the client hitting a servlet/JSP? Thanks for the help.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look through HttpServletRequest for getRemote... and see if any will do the job.
 
Samuel Lugo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, request.getRemoteAddr(). Thanks a bunch.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice work Stan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic