A modern web-based DHCP server with real-time device monitoring and IP binding management.
This DHCP server is designed for selective IP assignment - perfect when you want to hand out IPs to specific devices while ignoring others. This is particularly useful in scenarios where:
Unlike traditional DHCP servers that assign IPs automatically from a pool, this server lets you see incoming requests and bind specific MAC addresses to IPs through the web interface.

The web interface provides real-time monitoring of DHCP activity with separate sections for active devices and static IP bindings. You can see device details, DHCP packet information, and manage IP assignments all from one clean dashboard.
# Kill any existing instance and run fresh
docker stop dhcp-server 2>/dev/null || true && \
docker run --rm --name dhcp-server --privileged --network host \
-e PORT=8000 \
-v dhcp-server-data:/data \
interactive-dhcp-server
# Clone, build, and run in one command
git clone <repository-url> && cd interactive_dhcp_server && \
docker build -t interactive-dhcp-server . && \
docker stop dhcp-server 2>/dev/null || true && \
docker run --rm --name dhcp-server --privileged --network host \
-e PORT=8000 \
-v dhcp-server-data:/data \
interactive-dhcp-server
Or step by step:
git clone <repository-url>
cd interactive_dhcp_server
docker build -t interactive-dhcp-server .
# Kill any existing instance and run fresh
docker stop dhcp-server 2>/dev/null || true
docker run --rm --name dhcp-server --privileged --network host \
-e PORT=8000 \
-v dhcp-server-data:/data \
interactive-dhcp-server
Web Interface: http://localhost:8000
Set these when running the container:
PORT (optional) - Web server port, defaults to 8000DEBUG (optional) - Enable debug logging with trueNote: Network interface is now set dynamically via the web interface API, not through environment variables.
PORT env var) for web interface# List available network interfaces
ip link show
# Or on older systems
ifconfig -a
Once the container is running, control the DHCP server via API:
curl -X POST http://localhost:8000/api/start \
-H "Content-Type: application/json" \
-d '{"interface": "eth0"}'
curl -X POST http://localhost:8000/api/stop
curl http://localhost:8000/api/interfaces
docker stop dhcp-server 2>/dev/null || true
docker run --rm --name dhcp-server --privileged --network host \
interactive-dhcp-server
docker stop dhcp-server 2>/dev/null || true
docker run --rm --name dhcp-server --privileged --network host \
-v dhcp-server-data:/data \
interactive-dhcp-server
docker stop dhcp-server 2>/dev/null || true
docker run --rm --name dhcp-server --privileged --network host \
-e PORT=8080 \
interactive-dhcp-server
docker stop dhcp-server 2>/dev/null || true
docker run --rm --name dhcp-server --privileged --network host \
-e DEBUG=true \
interactive-dhcp-server
IP bindings are stored in /data/dhcp_bindings.json. Mount this directory to persist configurations across container restarts.
Docker will automatically create any named volume if it doesn't exist. To use a specific host directory instead:
# Use a host directory for data
docker run --privileged --network host \
-e DHCP_INTERFACE=eth0 \
-v /opt/dhcp-server:/data \
interactive-dhcp-server
MIT License
Copyright (c) 2025 Olis Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
sha256:a24e8ab60…
Size
141.5 MB
Last updated
about 1 year ago
docker pull olisrobotics/interactive-dhcp-server