why do my Wifi transceivers do not reconnect?

I use xbee wifi modules in transparent mode. After a long period of being connected to a socket server, the modules go offline. The only way to reconnect the module is by changing source port C0. Is there a workaround for this issue?

Check the timeout settings within your Server and the TM or TS commands.