Echo your public IP address with a very simple cURL request
curl https://echoip.tech/
or
curl echoip.tech
93.184.216.34
or
["93.184.216.34"]
Set the GET parameter type
to get a specific data format. Currently supported values are:
JSON
TEXT
Please note that the type
parameter is not case sensitive.
Example:
curl https://echoip.tech/?type=JSON