In this tutorial we are going to learn how find Public IP Address of our computer using Linux curl command.
Curl - transfer a URL SYNOPSIS. Curl options DESCRIPTION. Curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, GOPHER, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.
Curl Ipv6 Example
Normally, if we want to find the public IP Address we use, we go to google and search “what is my ip address”. But if you use Linux, you can get your public IP Address from the command line using curl command.
The curl command with ifconfig.me argument will show your public IP Address.
- Update script for dynv6.com to set your IPv4 address and IPv6 prefix - dynv6.sh.
- In SecurePlatform OS, use the 'curl' command instead of 'curlcli' command. If IPv6 address is assigned on Security Gateway / Security Management Server, then these services should be allowed in the rulebase for IPv6 as well. You can also check and subscribe to updates on.
Curl Ipv4
For Additional information use curl ifconfig.me/all.
The output will show the public IP Address, user agent and the port you are connected.
Curl Ipv6 Example
So that is how we can easily get the public IP Address using Linux curl command.