I maintain a C# desktop utility that receives text/commands from an Android app through a VPS relay. It is intended for authorized remote assistance/accessibility use, not for bypassing proctoring, hiding software, or evading network monitoring.
In some restricted/managed networks, the relay connection is blocked or terminated. The desktop app works locally, but the Android ↔ VPS ↔ desktop connection drops. I want to understand the standard way to diagnose this at the network level and design appropriate logging/reconnect behavior in environments where such a connection is permitted.
I am not asking how to evade monitoring or hide the application. My questions are:
What logs/metrics should I collect to determine whether the connection is blocked by DNS, firewall, proxy, TLS, or idle timeout?
What are common reasons a VPS relay connection is terminated in restricted networks?
What is a reasonable reconnect/backoff strategy for a C# client when the connection is allowed but unstable?
Current stack: C# desktop client, Android app, VPS relay.
Protocol: TCP/WebSocket/other — specify
Error observed: exact exception/socket error
Port/TLS/proxy setup: describe