-
I'm running an uws server on localhost. Whenever I retrieve the clients ip address, it throws 127.0.0.1. I'm expecting it to throw my public ipv4. Why's that? Note: I'm using the same device for both client and server. |
Beta Was this translation helpful? Give feedback.
Answered by
hst-m
Dec 7, 2020
Replies: 1 comment
-
127.0.0.1 is special address for localhost, this is correct, it means it is coming from the same machine. it would only show the external ip if it was coming from outside. this is basic networking 101 https://www.lifewire.com/network-computer-special-ip-address-818385 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
127.0.0.1 is special address for localhost, this is correct, it means it is coming from the same machine. it would only show the external ip if it was coming from outside. this is basic networking 101
https://www.lifewire.com/network-computer-special-ip-address-818385