IP to Location using Javascript

后端 未结 13 1434
死守一世寂寞
死守一世寂寞 2020-11-27 03:46




        
13条回答
  •  醉话见心
    2020-11-27 03:47

    I wish to point out that if you use http://freegeoip.net/, you don't need to supply to it the IP address of the client's location. Just try these:

    1) http://freegeoip.net/xml/

    2) http://freegeoip.net/json/

    3) http://freegeoip.net/csv/

    However, I am unable to retrieve the information with AJAX calls, probably because of some cross-origin policy. Apparently they have not allowed public access to their system.

提交回复
热议问题