Smart way to get the public Internet IP address/geo loc

后端 未结 9 1977
野趣味
野趣味 2021-01-01 05:41

I have a computer on the local network, behind a NAT router. I have some 192.168.0.x addresses, but I really want to know my public IP address, not somethin

9条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 06:28

    The problem is that the IP address you're looking for doesn't belong to your computer. It belongs to your NAT router. The only ways I can think of getting it is to use an external server or have some way of querying your router.

    If your router supports SNMP, you may be able to get it that way.

提交回复
热议问题