Main gateway server operations
2026-04-17 20:37:01.415 [INFO] [main] [TCP] New client connection from ('66.132.172.139', 24374)
2026-04-17 20:37:01.414 [INFO] [main] [TCP] Accepted connection from ('66.132.172.139', 24374)
2026-04-17 20:36:55.887 [INFO] [main] [TCP] Client ('66.132.172.139', 26530) disconnected and cleaned up
2026-04-17 20:36:55.886 [INFO] [main] [TCP] Client ('66.132.172.139', 26530) disconnected
2026-04-17 20:36:40.571 [INFO] [main] [TCP] New client connection from ('66.132.172.139', 26530)
2026-04-17 20:36:40.570 [INFO] [main] [TCP] Accepted connection from ('66.132.172.139', 26530)
2026-04-17 20:36:36.196 [INFO] [main] [TCP] Client ('66.132.172.139', 7874) disconnected and cleaned up
2026-04-17 20:36:36.195 [INFO] [main] [TCP] Client ('66.132.172.139', 7874) connection lost: [Errno 104] Connection reset by peer
2026-04-17 20:36:27.079 [INFO] [main] [TCP] New client connection from ('66.132.172.139', 7874)
2026-04-17 20:36:27.078 [INFO] [main] [TCP] Accepted connection from ('66.132.172.139', 7874)
2026-04-17 20:36:26.957 [INFO] [main] [TCP] Client ('66.132.172.139', 44538) disconnected and cleaned up
2026-04-17 20:36:26.956 [INFO] [main] [TCP] Client ('66.132.172.139', 44538) connection lost: [Errno 104] Connection reset by peer
2026-04-17 20:36:20.196 [INFO] [main] [TCP] New client connection from ('66.132.172.139', 44538)
2026-04-17 20:36:20.195 [INFO] [main] [TCP] Accepted connection from ('66.132.172.139', 44538)
2026-04-17 20:36:20.097 [INFO] [main] [TCP] Client ('66.132.172.139', 5580) disconnected and cleaned up
2026-04-17 20:36:20.096 [INFO] [main] [TCP] Client ('66.132.172.139', 5580) connection lost: [Errno 104] Connection reset by peer
2026-04-17 20:36:16.135 [INFO] [main] [TCP] New client connection from ('66.132.172.139', 5580)
2026-04-17 20:36:16.106 [INFO] [main] [TCP] Accepted connection from ('66.132.172.139', 5580)
2026-04-17 19:01:56.008 [INFO] [main] [CLEANUP] Removed stale UDP client ('46.114.229.185', 17367)
2026-04-17 19:00:55.986 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-04-17 18:59:55.925 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-04-17 18:58:55.864 [INFO] [main] [CLEANUP] Active connections - UDP: 1, TCP: 0, Boxes: 1
2026-04-17 18:58:14.431 [INFO] [main] [TELEMETRY] API response received for ('46.114.229.185', 17367)
2026-04-17 18:58:14.424 [ERROR] [main] [API] Request failed: 502 Server Error: Bad Gateway for url: https://stage.sdk-dashboard.hypen.ro/api/device-data
2026-04-17 18:58:13.973 [INFO] [main] [TRANSFORM] Laravel payload created for tag_id: 1
2026-04-17 18:58:13.972 [INFO] [main] [TRANSFORM] Starting Laravel-compatible transformation
2026-04-17 18:58:13.954 [INFO] [main] [API] Starting Laravel API forward
2026-04-17 18:58:13.954 [INFO] [main] [TELEMETRY] Processing telemetry from ('46.114.229.185', 17367)
2026-04-17 18:58:13.953 [INFO] [main] [ACTION] Test completed for box 1
2026-04-17 18:58:13.953 [INFO] [main] [ACTION] Client ('46.114.229.185', 17367) registered with box 1
2026-04-17 18:58:13.952 [INFO] [main] [ACTION] Handling action 'completed' from ('46.114.229.185', 17367) (UDP)
2026-04-17 16:47:49.566 [INFO] [main] [TCP] TCP server listening on 0.0.0.0:5684
2026-04-17 16:47:49.566 [INFO] [main] [UDP] UDP server listening on 0.0.0.0:5683
2026-04-17 16:47:49.566 [INFO] [main] [UDP] Starting UDP server on port 5683
2026-04-17 16:47:49.565 [INFO] [main] [MAIN] TCP server thread started
2026-04-17 16:47:49.565 [INFO] [main] [TCP] Starting TCP server on port 5684
2026-04-17 16:47:49.564 [INFO] [main] [MAIN] Cleanup thread started
2026-04-17 16:47:49.563 [INFO] [main] [CLEANUP] Starting cleanup thread
2026-04-17 16:47:49.563 [INFO] [main] ============================================================
2026-04-17 16:47:49.562 [INFO] [main] NAT Keepalive: ENABLED
2026-04-17 16:47:49.562 [INFO] [main] Test Mode: ENABLED
2026-04-17 16:47:49.562 [INFO] [main] SSL Verification: False
2026-04-17 16:47:49.561 [INFO] [main] API Endpoint: https://stage.sdk-dashboard.hypen.ro/api/device-data
2026-04-17 16:47:49.561 [INFO] [main] TCP Port: 5684
2026-04-17 16:47:49.561 [INFO] [main] UDP Port: 5683
2026-04-17 16:47:49.561 [INFO] [main] FIXED: Bidirectional communication through NAT
2026-04-17 16:47:49.560 [INFO] [main] ENHANCED: Proper connection reuse for NAT traversal
2026-04-17 16:47:49.560 [INFO] [main] Starting Enhanced Dual Protocol Gateway with NAT Support
2026-04-17 16:47:49.527 [INFO] [main] ============================================================
2026-04-17 16:47:49.527 [INFO] [main] [MONITOR] Connection monitor started