Main gateway server operations
2026-07-15 19:53:43.370 [INFO] [main] [TCP] Client ('199.45.154.127', 35254) disconnected and cleaned up
2026-07-15 19:53:43.370 [INFO] [main] [TCP] Client ('199.45.154.127', 35254) connection lost: [Errno 104] Connection reset by peer
2026-07-15 19:53:36.713 [INFO] [main] [TCP] New client connection from ('199.45.154.127', 35254)
2026-07-15 19:53:36.712 [INFO] [main] [TCP] Accepted connection from ('199.45.154.127', 35254)
2026-07-15 19:53:36.429 [INFO] [main] [TCP] Client ('199.45.154.127', 35246) disconnected and cleaned up
2026-07-15 19:53:36.429 [INFO] [main] [TCP] Client ('199.45.154.127', 35246) connection lost: [Errno 104] Connection reset by peer
2026-07-15 19:53:31.723 [INFO] [main] [TCP] New client connection from ('199.45.154.127', 35246)
2026-07-15 19:53:31.721 [INFO] [main] [TCP] Accepted connection from ('199.45.154.127', 35246)
2026-07-15 17:58:50.226 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.210.253', 16709)
2026-07-15 17:57:50.164 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 17:56:50.103 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 17:55:50.090 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 14:57:42.548 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.215.192', 17790)
2026-07-15 14:56:42.486 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 14:55:42.452 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 14:54:42.390 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 11:56:35.074 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.229.27', 19846)
2026-07-15 11:55:35.045 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 11:54:34.998 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 11:53:34.979 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 10:26:15.254 [INFO] [main] [TCP] Client ('88.214.25.123', 65186) disconnected and cleaned up
2026-07-15 10:26:15.253 [INFO] [main] [TCP] Client ('88.214.25.123', 65186) connection lost: [Errno 104] Connection reset by peer
2026-07-15 10:26:15.214 [INFO] [main] [TCP] New client connection from ('88.214.25.123', 65186)
2026-07-15 10:26:15.212 [INFO] [main] [TCP] Accepted connection from ('88.214.25.123', 65186)
2026-07-15 08:55:27.259 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.224.128', 12205)
2026-07-15 08:54:27.238 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 08:53:27.185 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 08:52:27.124 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-07-15 05:55:19.771 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.208.132', 9305)
2026-07-15 05:54:19.710 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 0
2026-07-15 05:53:19.660 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 0
2026-07-15 05:52:19.599 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 0
2026-07-15 04:04:14.624 [INFO] [main] [UDP] UDP server listening on 0.0.0.0:25683
2026-07-15 04:04:14.624 [INFO] [main] [TCP] TCP server listening on 0.0.0.0:25684
2026-07-15 04:04:14.623 [INFO] [main] [UDP] Starting UDP server on port 25683
2026-07-15 04:04:14.623 [INFO] [main] [MAIN] TCP server thread started
2026-07-15 04:04:14.622 [INFO] [main] [TCP] Starting TCP server on port 25684
2026-07-15 04:04:14.621 [INFO] [main] [MAIN] Cleanup thread started
2026-07-15 04:04:14.621 [INFO] [main] [CLEANUP] Starting cleanup thread
2026-07-15 04:04:14.620 [INFO] [main] ============================================================
2026-07-15 04:04:14.620 [INFO] [main] NAT Keepalive: ENABLED
2026-07-15 04:04:14.619 [INFO] [main] Test Mode: ENABLED
2026-07-15 04:04:14.619 [INFO] [main] SSL Verification: False
2026-07-15 04:04:14.619 [INFO] [main] API Endpoint: https://stage.sdk-dashboard.hypen.ro/api/device-data
2026-07-15 04:04:14.619 [INFO] [main] TCP Port: 25684
2026-07-15 04:04:14.618 [INFO] [main] UDP Port: 25683
2026-07-15 04:04:14.618 [INFO] [main] FIXED: Bidirectional communication through NAT
2026-07-15 04:04:14.618 [INFO] [main] ENHANCED: Proper connection reuse for NAT traversal
2026-07-15 04:04:14.618 [INFO] [main] Starting Enhanced Dual Protocol Gateway with NAT Support
2026-07-15 04:04:14.589 [INFO] [main] ============================================================