Look up one own's public IP easily

Occasionally, I need to look up my own public IP for various reasons. To do this, I would google “what is my ip”, and got a result on the browser. Recently, I found a way to easily do this using curl command to an easy to remember URL ifconfig.io. Here is an example, of course with the fake IPs as the results: ➜ curl ifconfig.io 2444:3444:20a:5310:d6c9:ffff:fef1:7777 To get the IPv4, we can supply the -4 option to curl command:...

October 28, 2024 · 1 min · 113 words · kenno