● Version 2.0.0 (Windows executable) · the public repository still has 1.0.0Networking · Monitoring · Windows

Administrador de Conexiones LAN

Know what is on the network, what it is, and when it was there.

automated tests collected by pytest
+1600
layered identification sources
7
IEEE vendor prefixes, offline
35 084

Technologies: Python · FastAPI · Uvicorn · WebSocket · Scapy + Npcap · APScheduler · SQLite · JavaScript · Chart.js · PyInstaller · pytest · GitHub Actions

The problem

A list of IP addresses is not enough: phones rotate their MAC for privacy, many devices ignore ping, and a sleeping PC can look like devices going offline. The challenge was to tell "absent" apart from "no data", explain where each name comes from, and avoid inventing numbers the network does not provide, such as per-device usage.

Goal

I wanted a reliable inventory of my network: which devices are on it, what they are, when they connect, and which ones fail. All of it from a dashboard that opens on the PC or on a phone in the same network, with the data in a local database.

My contribution

I designed the architecture and directed its AI-assisted development (Claude): the Python agent (discovery, identification, health, rules, and alerts), the REST API with WebSocket, the framework-free JavaScript dashboard, and the tray executable. I also defined the test suite, which runs without a real network or Npcap, and the continuous integration for three Python versions.

LIVE ARCHITECTURE

Architecture

Every moving dot is data; amber marks alerts. Tap a component to see what it does and what it connects to.

Architecture: Administrador de Conexiones LANData flowToward the output
SourcesAt the stationIngestionCoreOutputInterface
SourcesAt the stationIngestionCoreOutputInterface

Tap a piece, or press Enter on it, to see what it does and what it connects to.

See every connection as a list
  • Local network to Discoveryperiodic sweep
  • Local network to Layered identificationannouncements and bounded probes
  • Scheduler to Discoveryschedules each cycle
  • Discovery to Local SQLitejoins, leaves, and IP changes
  • Layered identification to Local SQLiteevidence with confidence
  • Local SQLite to Rules and schedulesactive rules
  • Rules and schedules to Local networkblocking by device, group, or schedule
  • Local SQLite to FastAPI servicequeries
  • FastAPI service to Web dashboardREST and WebSocket deltas
  • Scheduler to Alerts and exportgrouped alerts
  • Tray executable to FastAPI servicestarts the server
One process serves the API, the WebSocket, and the dashboard; state lives in SQLite.

Decisions

  1. One process, everything local

    I chose to have a single process serve the API, the WebSocket, and the dashboard, with scanning in the background and all state in SQLite. That way the executable opens with a double click and does not rely on external servers to work.

  2. Evidence before labels

    Every identity fact keeps its source, age, and confidence, and the dashboard explains in plain language why a device is believed to be what it is. If no method yields a name, I keep the last valid evidence instead of making one up.

  3. "Absent" is not "no data"

    Daily presence separates three states: on the network, absent, and no data. I only report an absence when the app was watching the same physical network, which I identify by its gateway MAC rather than by the IP range alone.

  4. Secure by default

    The dashboard listens only on the local PC until you choose to expose it, requires sign-in, and the admin account can only be created from that PC. Secrets are encrypted with DPAPI, and an ambiguous value in config.ini stops startup instead of being read as "false".

  5. Only what can be delivered

    Without real counters from the router, I do not show per-device usage: the dashboard explains why the figure is missing instead of estimating it.

What it does

  • Continuous discovery

    Periodic sweeps of every active IPv4 subnet, combined with the Windows neighbor table and a fallback check when packet capture cannot hear the replies, as happens with some Wi-Fi adapters.

  • Layered identification

    mDNS/DNS-SD, SSDP/UPnP, WS-Discovery/ONVIF, read-only SNMP, NetBIOS, TCP services, and bounded HTTP/TLS fingerprints, plus offline vendor lookup by OUI. It also groups records that are probably the same device, such as a phone with a private MAC.

  • History, presence, and health

    Connection sessions, IP changes, 24-hour and 30- or 90-day presence, and p50/p95 latency per device. Gaps are marked as missing data and never filled with zeros.

  • Real-time dashboard

    Six sections (Overview, Devices, Alerts, Rules and schedules, Analysis, and Settings) updated over WebSocket with only the devices that changed. It includes a Ctrl+K command palette, light and dark themes, and phone-friendly navigation.

  • Access rules

    Access blocking by device, group, or schedule, on your own networks only. Rules are written as a sentence, previewed on a weekly view before saving, and lifted when deleted or when the app closes.

  • Alerts without noise

    Alerts grouped by topic, with a grace period before a watched device is reported as down. Notifications go out via Telegram, ntfy, or email.

  • Portable data

    CSV and JSON export, with a variant for Spanish-locale Excel and formula-injection protection, plus import of names, groups, and notes with a preview. The database is backed up daily, and each copy is checked before it replaces the previous one.

  • A self-checking executable

    PyInstaller produces a tray .exe. During the build, a test copy starts the server on a free port and must respond before the build is accepted.

Screenshots

Outcome

Version 2.0.0 runs as a Windows executable, with the dashboard on the PC itself or, once exposed, on a phone on the same network. pytest collects more than 1,600 tests that need neither Npcap nor a real network, and the project includes a GitHub Actions workflow configured for Python 3.11, 3.12, and 3.13. The latest build passed its startup self-check.

Limits

It is a tool for networks you own or are authorized to manage. Blocking covers IPv4 only and works while the app is open on that PC, within its own local network. It does not implement bandwidth limits (the API returns 501) or show per-device usage without real router counters. Screenshots use a demo database with fictional devices.

NEXT CASEWebP Forge