Main gateway server operations
2026-06-13 13:41:48.056 [INFO] [main] [TCP] Starting TCP server on port 5684
2026-06-13 13:41:48.055 [INFO] [main] [MAIN] Cleanup thread started
2026-06-13 13:41:48.055 [INFO] [main] [CLEANUP] Starting cleanup thread
2026-06-13 13:41:48.054 [INFO] [main] ============================================================
2026-06-13 13:41:48.054 [INFO] [main] NAT Keepalive: ENABLED
2026-06-13 13:41:48.054 [INFO] [main] Test Mode: ENABLED
2026-06-13 13:41:48.053 [INFO] [main] SSL Verification: False
2026-06-13 13:41:48.053 [INFO] [main] API Endpoint: https://stage.sdk-dashboard.hypen.ro/api/device-data
2026-06-13 13:41:48.053 [INFO] [main] TCP Port: 5684
2026-06-13 13:41:48.053 [INFO] [main] UDP Port: 5683
2026-06-13 13:41:48.052 [INFO] [main] FIXED: Bidirectional communication through NAT
2026-06-13 13:41:48.052 [INFO] [main] ENHANCED: Proper connection reuse for NAT traversal
2026-06-13 13:41:48.052 [INFO] [main] Starting Enhanced Dual Protocol Gateway with NAT Support
2026-06-13 13:41:48.050 [INFO] [main] ============================================================
2026-06-13 13:41:48.050 [INFO] [main] [MONITOR] Connection monitor started
2026-06-13 13:41:46.896 [INFO] [main] [MAIN] Received signal 15, shutting down...
2026-06-13 12:44:41.051 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.229.161', 21057)
2026-06-13 12:43:40.990 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-06-13 12:42:40.979 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-06-13 12:41:40.918 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-06-13 11:47:52.244 [INFO] [main] [TCP] Client ('147.185.132.236', 60388) disconnected and cleaned up
2026-06-13 11:47:52.243 [INFO] [main] [TCP] Client ('147.185.132.236', 60388) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:47:42.825 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 60388)
2026-06-13 11:47:42.823 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 60388)
2026-06-13 11:47:42.461 [INFO] [main] [TCP] Client ('147.185.132.236', 63234) disconnected and cleaned up
2026-06-13 11:47:42.460 [INFO] [main] [TCP] Client ('147.185.132.236', 63234) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:47:38.750 [INFO] [main] [CLEANUP] Active connections - UDP: 0, TCP: 1, Boxes: 0
2026-06-13 11:47:23.045 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 63234)
2026-06-13 11:47:23.043 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 63234)
2026-06-13 11:47:18.020 [INFO] [main] [TCP] Client ('147.185.132.236', 64862) disconnected and cleaned up
2026-06-13 11:47:18.020 [INFO] [main] [TCP] Client ('147.185.132.236', 64862) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:47:15.039 [INFO] [main] [TCP] Client ('147.185.132.236', 50832) disconnected and cleaned up
2026-06-13 11:47:15.038 [INFO] [main] [TCP] Client ('147.185.132.236', 50832) timeout
2026-06-13 11:46:58.033 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 64862)
2026-06-13 11:46:58.031 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 64862)
2026-06-13 11:46:57.744 [INFO] [main] [TCP] Client ('147.185.132.236', 62414) disconnected and cleaned up
2026-06-13 11:46:57.744 [INFO] [main] [TCP] Client ('147.185.132.236', 62414) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:46:41.137 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 62414)
2026-06-13 11:46:41.135 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 62414)
2026-06-13 11:46:38.723 [INFO] [main] [CLEANUP] Active connections - UDP: 0, TCP: 1, Boxes: 0
2026-06-13 11:46:33.596 [INFO] [main] [TCP] Client ('147.185.132.236', 58610) disconnected and cleaned up
2026-06-13 11:46:33.596 [INFO] [main] [TCP] Client ('147.185.132.236', 58610) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:46:14.484 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 58610)
2026-06-13 11:46:14.483 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 58610)
2026-06-13 11:46:14.249 [INFO] [main] [TCP] Client ('147.185.132.236', 62682) disconnected and cleaned up
2026-06-13 11:46:14.248 [INFO] [main] [TCP] Client ('147.185.132.236', 62682) connection lost: [Errno 104] Connection reset by peer
2026-06-13 11:46:04.122 [INFO] [main] [TCP] New client connection from ('147.185.132.236', 62682)
2026-06-13 11:46:04.121 [INFO] [main] [TCP] Accepted connection from ('147.185.132.236', 62682)
2026-06-13 11:45:55.233 [INFO] [main] [TCP] Client ('147.185.132.236', 62000) disconnected and cleaned up
2026-06-13 11:45:55.232 [INFO] [main] [TCP] Client ('147.185.132.236', 62000) connection lost: [Errno 104] Connection reset by peer