ip-echo/README.md

21 lines
368 B
Markdown
Raw Normal View History

2019-10-06 09:34:03 +03:00
# ip-echo
2024-11-13 05:10:54 +03:00
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
```sh
$ 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"}
```