Get the public IP address from the command line Posted byLaszlo Pinter April 20, 2020 Leave a comment on Get the public IP address from the command line To get the public IP address of the server from the command line, execute curl ifconfig.me