Xojo.Net.TCPSocket to Desktop ServerSocket

Has anyone used an iOS TCPSocket to connect to a desktop ServerSocket? I’m having some strange activity where the Xojo.Net.TCPSocket connects like I expect then it immediately drops.

In my iOS app the socket is NOT going out of scope. Any ideas on why the TCP socket keeps closing?

Ug. stupid programmer tricks on the iOS side! I was repeatedly re-initializing the socket.