Extract your public IP address from terminal

It鈥檚 quite useful to have at your fingertips the option of getting your public IP address. Here I will give you various commands to get the IP. Note not all of them have IPv6 service, so only works with IPv4. IPv4 & IPv6 If you have a connection to the Internet with IPv6, by default, it will be used this interface. However you could force the IPv4 use just adding the -4 option to the curl command. Something like curl -4 ip.sb. ...

November 17, 2022 路 1 min 路 Yvoictra
IPInfo.io Home

Get IP address location info from command line

The Linux command line is a great tool. Today I鈥檒l like to share a method to get Geographical IP information with one command, using curl and the tool of ipinfo.io. It is as easy to use this command: $ curl ipinfo.io/<IP Address> Here you have an example: You will have these parameters: IP City Region Country Loc (Coordinates) Org Postal Timezone If you want to get information about the Public IP Address you use to go to The Internet, you could execute the command this way: ...

September 5, 2020 路 1 min 路 Yvoictra