How to check IP address from command line | Internal and External Check your Internal IP address To check you current machines addres: "ip add" or "ip addr" or; ip address Check your external IP address First make sure that the curl command is installed. If not, do this sudo apt install curl By using curl, check the external address by doing this; curl -w "\n" -s https://api.ipify.org That should give an output of your external IP address.