Reputation: 1898
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.
Upvotes: 0
Views: 1105
Reputation: 27880
This address is the Loopback address (the IP of your computer, seen from your computer) expressed in IPv6 (usually 127.0.0.1
in IPv4, aliased with host name localhost
)
Upvotes: 2