Get Current User's IP Address

Hi everyone.

I cannot get current user’s IP address to work. I know this sounds really simple and stupid! PLEASE CAN SOMEONE HELP ME - I’M HAVING SUCH A BAD DAY!!

I have downloaded the IPIPHY plugin. I have created a text box, then choose get data from an external API.

I should then be able to select Get Current Users IP Address in the API provider field of the inspector - but it is not there. Instead I have chosen IPIFY API - get my IP’s IP. This returns an IP address which is good.

Ok, so I now need to extract the geolocation information from this IP address. I have downloaded the IP Geo plug-in, but it doesn’t work!

I followed the online videos exactly and the box which should display the address is simply not shown. Any ideas what might be wrong please?? Please see screenshots.

Try a save to state and show data thats saved to state?
Or,
Save to database on action then call that database saved IP.

I use https://ipinfo.io - which gives you the IP and the Geolocation of the browser in one hit. I’ve had issues with ipiphy and others hitting throughput limits and it quietly dying ie 503 errors and they were very painful to diagnose so check the http response code.

You can try to use ip2location.io API which has the IP geolocation results in one hit.

This topic was automatically closed after 70 days. New replies are no longer allowed.