> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/show-public-ip.md).

# Show Public IP

Public IP Address using `dig` can be obtained using command:

```bash
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
```

Alternate using `curl`:

```bash
curl ifconfig.me
```
