Checking if recording server is down using TCP programming

Hi, I am using TCP programming to connect and retrieve video (in images format) from milestone server for custom application (c# .NET 32bit). How can I check if primary recording server (Milestone services) is down to switch my connection IP to failover server in my application so that It can get video from failover server.

I am surprised. When you are using C# .NET you should really be using the MIP .NET Library, everything will be so much easier that way. Let me know if you need any hints or tips on this..

Perhaps - https://mymilestone.force.com/developer/s/article/Processor-architecture-compatibility-for-the-Milestone-Integration-Platform-MIP-SDK

On ServerCommandService use QueryChanges.. Can be called to be notified when failover happens.