Get User's Real IP Address

It’s not the computer’s IP address you are looking for. You are trying to get the router’s public IP address, computers on the network do not normally have this information, it would be easiest to use an external service like https://whatismyipaddress.com/

However the router also has a firewall/nat that must be traversed, usually this means port forwarding. Other options include UPnP and hole punching.

2 Likes