(Universal Open-Source Gateway Dashboard with Anti-Hotspot Shield & Real-Time Traffic Engine)
The Universal Smart Router Admin Panel is a next-generation, high-performance web dashboard that connects with any local Wi-Fi router or fiber gateway.
Whether your network uses a Huawei EchoLife ONT (192.168.100.1), TP-Link (192.168.0.1), Tenda (192.168.1.1), Netgear, D-Link, MikroTik, or OpenWrt β simply launching start_dashboard.bat automatically discovers your default gateway, probes the router brand, and displays an intuitive Router Setup & Login Interface to manage your entire network.
- Eliminates hardcoded IP addresses (
192.168.100.1,192.168.1.1,192.168.0.1,10.0.0.1). - Dynamically retrieves the default gateway IP and host IP using OS routing tables (
route print,Get-NetRoute,ip route show default). - Inspects gateway HTTP responses to identify the exact router vendor and hardware signature (Huawei, TP-Link, Tenda, Netgear, MikroTik, Generic).
- Access the Router Setup Modal at startup or anytime by clicking the router badge in the top navigation bar.
- Configure custom Gateway IP, Admin Username, and Password.
- Pre-Flight Verification: Validates login credentials prior to saving.
- Universal Mode: Operates seamlessly via local ARP table analysis and hardware NIC counters even if direct router web login is unavailable.
- Hardware NIC Monitoring (
psutil): Accurately measures physical network interface byte throughput. - Integrated Speed Test: 1-click speed test powered by global Cloudflare edge servers:
- Download Speed (Mbps)
- Upload Speed (Mbps)
- Latency / Ping (ms)
- Automatically synchronizes dashboard capacity gauges and QoS baselines upon test completion.
- Assign independent Download Speed Limits (Mbps) and Upload Speed Limits (Mbps) to individual connected devices.
- Example allocations:
- Primary Workstation / PC: Full Line Speed (VIP Priority)
- Smartphone 1: 2.0 Mbps Download / 0.5 Mbps Upload
- Smartphone 2: 1.0 Mbps Download / 0.2 Mbps Upload
- Smart TV: 5.0 Mbps Download / 1.0 Mbps Upload
- Prevents single devices from monopolizing network bandwidth.
- Detects secondary Wi-Fi hotspots and mobile AP bridges created by connected smartphones or laptops:
- NAT TTL Hop Inspection: Identifies packets that have traversed a secondary NAT layer.
- Downstream Hierarchy Visualizer: Displays secondary tethered devices connected behind the hotspot host.
- Auto-Block: Automatically blacklists offending devices via the hardware WLAN MAC Filter.
- Starve / Throttle: Restricts unauthorized sharing devices to 0.1 Mbps.
- Real-time topology map: Internet Cloud β Gateway ONT β Wi-Fi SSIDs / LAN Ports β Connected Devices.
- Tracks daily and cumulative data consumption (MB / GB) in a persistent SQLite database (
data_usage.db). - Displays a real-time Top 5 Bandwidth Consumers leaderboard.
If you don't have Python installed or want a portable 1-click experience:
- Go to the GitHub Releases page.
- Download the latest
SmartRouterAdmin-v1.0.0-Windows.zip. - Extract the folder and double-click
Launch_SmartRouterAdmin.bat(orSmartRouterAdmin.exe). - The dashboard will automatically launch and open in your default browser at
http://localhost:8080!
If you have Python 3.9+ installed:
- Clone or download this repository.
- Double-click
start_dashboard.bat.
The script will automatically:
- Verify Python and auto-install required dependencies (
flask,requests,psutil). - Discover your network's default gateway and identify your router vendor.
- Launch the web server and open
http://localhost:8080in your default browser.
-
Clone repository:
git clone https://github.com/codocraft/smart-router-admin.git cd smart-router-admin -
Install dependencies:
pip install -r requirements.txt
-
Start server:
python app.py
-
Open browser: π
http://localhost:8080
Access the admin panel from any smartphone, tablet, or laptop on your Wi-Fi network:
- Check your computer's local IP address (
ipconfigon Windows, e.g.192.168.100.199). - Open your mobile browser (Chrome, Safari, Firefox):
π
http://192.168.100.199:8080
smart-router-admin/
β
βββ start_dashboard.bat # 1-Click Windows Launcher with auto-discovery
βββ build_protected_exe.bat # Standalone binary compiler (PyInstaller packaging)
βββ requirements.txt # Python dependencies (Flask, Requests, Psutil)
βββ app.py # Main Flask Web Server & REST API endpoints
βββ license_guard.py # Anti-tampering & integrity verification core
βββ network_discovery.py # Auto-detection of Gateway IP, Local IP & Router Brand
βββ router_bridge.py # Router hardware interface (Huawei, TP-Link, ARP fallback)
βββ traffic_engine.py # Live NIC hardware metrics, speedtest, anti-hotspot forensics
βββ database.py # SQLite WAL-mode database (per-device data & settings)
β
βββ templates/
β βββ index.html # Modern Glassmorphic Admin Dashboard & Modals
β
βββ static/
β βββ css/
β β βββ style.css # Dark glassmorphism, responsive grid, status badges
β βββ js/
β βββ app.js # Live polling, speed test, setup modal, charts & filters
β
βββ README.md # Complete English Documentation
| Router Brand / Model | Mode | Features Supported |
|---|---|---|
| Huawei EchoLife GPON ONT (HS8145C, HG8245, etc.) | Full Superadmin API | Hardware MAC Filter, Multi-SSID QR, Optical Fiber RX/TX, Reboot |
| TP-Link / Tenda / Netgear / D-Link | Universal / HTTP Bridge | Auto-Gateway Discovery, Device Tracking, Bandwidth Shaping |
| Any Router / Generic Wi-Fi | Universal ARP Mode | Auto-Gateway, Real Hardware Speed Test, Per-Device Limits, Anti-Hotspot |
Answer: Not at all. The network discovery engine automatically identifies your gateway IP (e.g. 192.168.1.1 or 192.168.0.1) and prompts you with the configuration modal.
Answer: Clicking "Test Real Speed" triggers a multi-stage latency and throughput test against global Cloudflare edge endpoints, recording real download, upload, and ping metrics directly into your dashboard.
Answer: Yes. Under the "Speed Booster & QoS" tab, download and upload caps can be configured independently per device.
If you find Smart Router Admin useful, please consider giving it a Star (β) on GitHub!
- It helps more network administrators and home users discover this project.
- It inspires continued development of new router protocols (MikroTik, ASUS, OpenWrt).
π Click here to Star the repository
router-admin-panel β’ bandwidth-limiter-windows β’ wifi-speed-controller β’ anti-hotspot-shield β’ huawei-echolife-admin β’ tplink-router-tools β’ per-device-speed-limit β’ network-traffic-monitor β’ cloudflare-speedtest-integration β’ lan-bandwidth-throttler β’ smart-router-dashboard β’ python-flask-network β’ codocraft-solutions
This software is developed and maintained by Codocraft Solutions.
Develop by Codocraft Solutions
Official Website: https://codocraft.com
- Self-Integrity Guard (
license_guard.py): Continuously verifies developer attribution on startup, during API requests, and through a background watchdog daemon. Any modification or removal of the URL or brand name causes an unrecoverable process crash (os._exit(1)). - Frontend DOM Sentinel (
app.js): Real-timeMutationObserverand periodic watchdog monitor the DOM; tampering wipes the UI and terminates the server backend. - Standalone Binary Compilation (
build_protected_exe.bat): Runbuild_protected_exe.batto compile the entire Python project into a standalone.exebinary. This ensures end-users cannot view or edit your Python source code.
Develop by Codocraft Solutions. All Rights Reserved.