Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Created January 15, 2021 00:00
Show Gist options
  • Save DominicWatts/e7a00cc90c929546d9ff312e96a48b59 to your computer and use it in GitHub Desktop.
Save DominicWatts/e7a00cc90c929546d9ff312e96a48b59 to your computer and use it in GitHub Desktop.
Check IP on server
Check IP address
curl
curl -s checkip.amazonaws.com
curl -s ipv4.icanhazip.com
curl -s http://ipv4.icanhazip.com
curl -s http://ipv6.icanhazip.com
curl -s https://checkip.amazonaws.com
wget
wget -qO- ipv4.icanhazip.com
wget -qO- checkip.amazonaws.com
docker
docker run --rm curlimages/curl:latest -s checkip.amazonaws.com
docker run --rm mwendler/wget -qO- checkip.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment