curl -4 ifconfig.me

Category: VPS Management

curl -4 ifconfig.me

Get the server's public IPv4 address from an external service

Queries ifconfig.me and returns only the IPv4 address. Useful after provisioning to confirm the public IP or in scripts that need to know the external address.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.