Sign inSign up

maboni82/external-ip-checker

By maboni82

Updated 10 months ago

Simple PHP-based service to reflect and log external IPs.

Image
Developer tools
Web servers
0

1.1K

maboni82/external-ip-checker repository overview

Build Status License Repo Size Docker Pulls

A lightweight PHP-based Docker container that allows any server to check and log its own external IP address. Ideal for monitoring, IP verification, and network diagnostics. This application returns the caller’s IP address and logs essential request data, including user agent, language, and timestamp.

Features

  • Simple IP Checker* – Easily retrieve the external IP address of any client accessing the app.
  • Detailed Logging* – Logs IP, user agent, request method, query string, and language data.
  • Dockerized Setup* – Quick to deploy and run in a containerized environment.
  1. Your PHP application is now accessible at http://localhost:8080. Any server accessing this URL will receive its own external IP in response.
Exposing with Nginx Proxy Manager

If you are using Nginx Proxy Manager, you can easily configure it to point to this app, using http://<your-server-ip>:8080.

Usage

When you navigate to http://localhost:8080, the app will return your IP address. Additionally, it will log details such as the timestamp, IP, user agent, and language to visitors.log in the container.

Example Log Entry
2024-10-13 00:02:02 external-ip-checker  | 192.168.65.1 - - [12/Oct/2024:22:02:02 +0000] "GET / HTTP/1.1" 200 241 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Safari/605.1.15

Demo

Access a live demo of this service at https://ip.bondit.dk

Tag summary

Content type

Image

Digest

sha256:0de9909b9

Size

172.9 MB

Last updated

10 months ago

docker pull maboni82/external-ip-checker