Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getRemoteAddress

 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I want to get the IP of each request and be able to determine differences in the "last" octet. (either the least/most significant, xxx.xxx.xxx.???). What objects should I use? How would determine the differences? tia.
 
Steve McCann
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chris

You can use the ServletRequest object to get the remote IP address. Normally you would use the Http subclass of this though, HttpServletRequest. Does this help?

Steve
[ October 28, 2005: Message edited by: Steve McCann ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic