This skill provides a simple way to check your public IP address and its geolocation information.
When users ask:
Execute the workflow below.
Run this command to get your public IP and location:
curl -s myip.ipip.net
Example output:
Current IP:8.8.8.8 From: SF CA USA Google
Current IP:1.1.1.1 From: SF CA USA Cloudflare
If the above fails, try these alternatives:
Method 1: icanhazip.com (fallback)
curl -s icanhazip.com
Method 2: ipify API
curl -s https://api.ipify.org
Method 3: ifconfig.me
curl -s ifconfig.me
For more detailed geolocation info:
curl -s https://ipinfo.io/$(curl -s https://api.ipify.org)/json
Present the information clearly:
IP Address: [address]
Location: [city], [region], [country]
ISP: [ISP name]
Org: [organization]
If the primary service (myip.ipip.net) fails:
共 1 个版本