Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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 ]
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!