Geolocation error with IP address 127.0.0.1

后端 未结 3 810
别跟我提以往
别跟我提以往 2021-01-07 12:58

OK, so I tried implementing this, http://ipaddressextensions.codeplex.com/.

It is displaying the output as:-

127.0.0.1 RESERVED ZZ

What on earth i

3条回答
  •  执笔经年
    2021-01-07 13:14

    127.0.0.1 is known as the loopback address and is what your system uses to talk to itself effectively. As a result, there is no country associated with that IP address... it's everywhere on every system.

    If you put your code out onto the web you'd get more appropriate results as each visiting system would be using a public IP address to reach your server.

提交回复
热议问题