How to find the public IP in Linux?

curl ifconfig.me

This is the easiest command.

wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ This is a more complicated command but it basically does the same thing. pc-help

ADD A COMMENT: