Skip to content

Instantly share code, notes, and snippets.

@DomPixie
Forked from DominicWatts/Check-IP-on-server
Created November 22, 2021 21:13
Show Gist options
  • Save DomPixie/767ee7b011d2f984a3da6734874a9ac5 to your computer and use it in GitHub Desktop.
Save DomPixie/767ee7b011d2f984a3da6734874a9ac5 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