get-public-ip.md
11 Feb 2016 | bashGet the public ip from command line
You want to know what is your public ip from the command line.
You can use one of the following command :
- Command 1. Using wget
wget http://ipecho.net/plain -O - -q ; echo
- Command 2: Using curl
curl ipecho.net/plain; echo
- Command 3: Using wget
wget http://observebox.com/ip -O - -q ; echo
- Command 4: Using curl
curl icanhazip.com
- Command 5: Using curl
curl ifconfig.me
Comments