# 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;

```bash
ip address
```

#### Check your external IP address

First make sure that the curl command is installed. If not, do this

```bash
sudo apt install curl
```

By using curl, check the external address by doing this;

```bash
curl -w "\n" -s https://api.ipify.org
```

That should give an output of your external IP address.