I have a web server running locally with the this address: 127.0.0.1:8000.
127.0.0.1 <-- Local IP address
8000 <-- Port number
When I use netstat command, I see the many IP addresses under the column 'local address'. All these must refer my local machine only. One of them is: 192.168.0.9 And also the series must resolve to local machine: 127.0.0.* . I verified this using ping command that this series is responding correctly.
When I reach the webserver with this URL in the browser: http://127.0.0.1:8000, it correctly returns the response from the local webserver. But what I expect is that even when I use http://192.168.0.9:8000, it must return the same response as the above one. (not that I use the same port number) But the browser is not able to reach and display 'This site can't be reached'.
Similarly when I use http://127.0.0.2:8000, I get the same error.
I don't quite understand why this happens; because the other addresses I try, must resolve to localhost and should return the message from the web server since I use the same port number which is 8000.
Not quite sure what I am doing wrong.