Files
2026-01-06 17:29:24 +01:00

32 lines
573 B
Markdown

# IP Pinger
A simple Node.js web service that returns the client's IP address.
## Installation
```bash
npm install
```
## Usage
Start the server:
```bash
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:
1. `X-Forwarded-For` header (for proxies/load balancers)
2. `X-Real-IP` header
3. Socket remote address
4. Connection remote address