Print your current public IP address
Build a paste-ready command, then review its compatibility and effects before running it.
curl -s https://api.ipify.orgCompatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementscurlcurl must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportcurl Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signals203.0.113.42Representative successful output; values vary with the selected target and system state.
Known errorscurl: command not foundcurl is missing or is not available on PATH.
Verifycurl -s https://api.ipify.orgThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01curlURL transfer toolRequests data from the supplied web service.
02-sSilent modeHides progress and error-meter output.
03api.ipify.orgIP echo serviceReturns the public IP address observed for the request.
Example input
curl -s https://api.ipify.org
Example output
203.0.113.42
Illustrative output — exact values vary by system and data.
Official sources