Check IP address in terminal on Linux

in #linux7 years ago

One line is just as good as the next. Pick your poison:

curl -4 ifconfig.me
curl -s httpbin.org/ip
curl -s http://whatismyip.org/ | grep -oP '(\d{1,3}\.){3}\d+'
curl -s http://wtfismyip.com/text
curl l2.io/ip
curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+"



Credits: commandlinefu

P.S.: The <pre> tag could use some margin-bottom somewhere in the steemit.com css. Just saying.

Coin Marketplace

STEEM 0.19
TRX 0.17
JST 0.031
BTC 87000.16
ETH 3290.95
USDT 1.00
SBD 2.93