Using request.getRemoteAddr() returns 0:0:0:0:0:0:0:1

In your case, as you are trying to access it on your local machine,so it will return that value. But let one of your friend access it, and you will receive the expected result with getRemoteAddr

From the javadoc:

getRemoteAddr – Returns the IP address of the client or last proxy that sent the request

getLocalAddr – Returns the IP address of the interface on which the request was received.

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.