Echo your public IP address with a very simple cURL request
curl https://echoip.yourhostname.com/or
curl echoip.yourhostname.com93.184.216.34or
["93.184.216.34"]Set the GET parameter type to get a specific data format. Currently supported values are:
JSONTEXT
Please note that the type parameter is not case sensitive.
Example:
curl https://echoip.yourhostname.com/?type=JSONClone the repository and run the image:
git clone https://github.com/lucasburlingham/echoip.xyz
cd echoip
docker-compose up -dIf you want to use a different port, change the .env file to use a different port.