Getting my ip address

后端 未结 12 1188
走了就别回头了
走了就别回头了 2020-12-16 23:34

I have a computer on a small network, so my ip is 192.168.2.100.

I am trying to get my real ip. I download the no-ip client but that just seems like a lot of trouble

12条回答
  •  误落风尘
    2020-12-17 00:14

    Unfortunately, you're server will most likely be completely oblivious to what it's own External address appears to be (as it might be set further upstream via some router/gateway)

    You could have a look at this link

    http://ip-address.domaintools.com/myip.xml

    It might be a little easier to parse than what you're currently doing.

提交回复
热议问题