geocoding api not responding fast enough for IP address

后端 未结 3 1829
野性不改
野性不改 2020-12-21 23:15

In my production server I\'ve used the Geocoder gem. But, the following code not working in the server console.

Geocoder.search(\"192.168.1.4\")
3条回答
  •  悲&欢浪女
    2020-12-21 23:40

    Have you tried using your Public facing IP instead of the internal IP you are using?

    IP address geocoding often returns results for the organization which owns the IP address block instead of the actual computer IP address. This is because IP address geocoding does not consider private IPs, VPNs, or internal network blocks.

提交回复
热议问题