I believe I have figured out the issue. In the TSX preferences (Advanced tab) there is the options 'TCP responses close socket'. For some reason, it was set to 'true'. This seemed undesirable so I set it to false and just like that everything seems to be behaving normally. I am now able to connect easily to TSX from the Ekos internal INDI server.