initial commit

This commit is contained in:
Sebastian Kiepsch
2026-01-06 17:29:24 +01:00
commit 0703ae53e7
7 changed files with 1053 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# 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