you have hit a problem with tcpip timeouts-

there is a minimum reconnect period set by devices or computers to the same address(es)

In my software i do what i can to work around this - the external device might not be doing this though-

udp connections do not do this - so if you can use udp connect modes.