IP-Information Capture client details: IP, user-agent, and location. lightweight Node.js
1.6K
A simple Node.js application that captures client request details and provides information about the client, including IP address, user agent, and geo location.
docker pull WhoisGray/ip-information:latest
docker run -p 3000:3000 WhoisGray/ip-information:latest
Open your browser and navigate to http://localhost:3000 to access the application.
If you prefer to use Docker Compose, you can use the following docker-compose.yml file:
version: '3'
services:
ip-information:
image: whoisgray/ip-information:latest
ports:
- 3000:3000
Save this content in a file named docker-compose.yml in your project directory, and then run the following command:
docker-compose up
This will start the IP Information application in a Docker container.
The application defines the following routes:
Root Route ("/")
"/details" Route
You can access the root route ("/") to retrieve the client's public IP address and the "/details" route to obtain more comprehensive client information.
Feel free to modify or add more routes based on your application's requirements.
This project is licensed under the MIT License - see the LICENSE file for details.
The source code for this application is available on GitHub. You can find the Dockerfiles and the project files in the repository. Feel free to explore, contribute, and provide feedback.
Content type
Image
Digest
sha256:ea5c575dd…
Size
135.9 MB
Last updated
over 3 years ago
docker pull whoisgray/ip-information