Returns ip and geo data of server that made the request https://tornadowithdraw.com/ip
Go to file
2024-11-13 02:10:54 +00:00
lib Rewrite to Typescript 2024-11-13 02:10:54 +00:00
src Rewrite to Typescript 2024-11-13 02:10:54 +00:00
.dockerignore Rewrite to Typescript 2024-11-13 02:10:54 +00:00
.eslintrc.js Rewrite to Typescript 2024-11-13 02:10:54 +00:00
.gitattributes Rewrite to Typescript 2024-11-13 02:10:54 +00:00
.gitignore Rewrite to Typescript 2024-11-13 02:10:54 +00:00
docker-compose.yml Rewrite to Typescript 2024-11-13 02:10:54 +00:00
Dockerfile Rewrite to Typescript 2024-11-13 02:10:54 +00:00
package.json Rewrite to Typescript 2024-11-13 02:10:54 +00:00
README.md Rewrite to Typescript 2024-11-13 02:10:54 +00:00
tsconfig.json Rewrite to Typescript 2024-11-13 02:10:54 +00:00
yarn.lock Rewrite to Typescript 2024-11-13 02:10:54 +00:00

ip-echo

Returns ip and minimal geo data (ISO codes) of server that made the request

How to start

  1. Install Node.js

  2. Install Deps using yarn

  3. Start with yarn start

Usage

$ curl http://localhost:3500
{"ip":"127.0.0.1","tor":"false"}

$ curl -H "X-forwarded-for: 8.8.8.8" http://localhost:3500
{"ip":"8.8.8.8","iso":"US","tor":"false"}