As a system administrator you may need to determine public IP of your Linux server from time to time for troubleshotting purposes or other tasks. Here is how you can determine public IP from Linux command line:
1 |
curl https://ipinfo.io/ip |
Issue the command above and get public IP of your Linux server.