Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

When we Refresh the page track the ip

anwar pasha
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When Refresh the page on banner,getting the ip address before the clicking or impression
Object reIp= remoteAddress(request);
String remoteIPAddress = reIp.toString();

public static InetAddress remoteAddress(HttpServletRequest request)throws UnknownHostException {
if (request.getHeader("x-forwarded-for") != null) {
return InetAddress.getByName(request.getHeader("x-forwarded-for"));
return InetAddress.getByName(request.getRemoteAddr());
I think I'll just lie down here for a second. And ponder this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!