I used the following code to get the visitors IPaddress.
<div id="news1"><%=request.getRemoteAddr()%></div>
When I run the code, I get the following output
0:0:0:0:0:0:0:1
Can I know what is actually happening in this line? I am not using any proxy and got this output when connecting from local host.
This address is the Loopback address (the IP of your computer, seen from your computer) expressed in IPv6 (usually
127.0.0.1in IPv4, aliased with host namelocalhost)