Find the public IP address of a server
what is my public ip linux command | get external ip address curl | find server public ip behind nat | curl | ip | natcurl -4 -s https://icanhazip.comAsks an external service which address the request comes from and prints only the IP. Useful behind NAT, on cloud servers with a private address on the interface or to find the IP for an allowlist. With -6 instead of -4, the IPv6 address appears.
Note: The request goes to a third party (operated by Cloudflare).
Also searched as
- what is my public ip linux command
- get external ip address curl
- find server public ip behind nat