Hi all: I have deployed my web app locally on my own box. I however didn't not resolve to localhost, i used my own computer name instead... but what happen is i did a test. I try to access the local web app, make a few requests... the result of getRemoteAddr() is different from what ipconfig /all give it to me..even though I am doing everything on the same computer..
could somebody explain to me why that is the case???
127.0.0.1 is the IP address used to loopback to own machine. this means if we try to connect to 127.0.0.1 , if gets routed to own machine. In other words 127.0.0.1 is you. A ping on local host also returns 127.0.0.1 while your machine might have an IP address