lucasburlingham / echoip.xyz

Simple, more hackable alternative to ipconfig.co

Home Page:https://echoip.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

echoip.xyz

Wakatime

Echo your public IP address with a very simple cURL request

Command:

curl https://echoip.xyz/

or

curl echoip.xyz

Sample output:

93.184.216.34

or

["93.184.216.34"]

Optional parameters:

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.xyz/?type=JSON

Deploy with Docker

Clone the repository and run the image:

git clone https://github.com/lucasburlingham/echoip.xyz
cd echoip.xyz
docker-compose up -d

If you want to use a different port, change the .env file to use a different port.

About

Simple, more hackable alternative to ipconfig.co

https://echoip.xyz


Languages

Language:PHP 83.9%Language:Makefile 10.2%Language:Dockerfile 5.9%