master
IP Pinger
A simple Node.js web service that returns the client's IP address.
Installation
npm install
Usage
Start the server:
npm start
The service will run on port 3000 by default. Visit http://localhost:3000 to see your IP address.
Environment Variables
PORT- The port to run the service on (default: 3000)
How it works
The service checks multiple sources to determine the client IP:
X-Forwarded-Forheader (for proxies/load balancers)X-Real-IPheader- Socket remote address
- Connection remote address
Languages
JavaScript
81.4%
Dockerfile
18.6%