Following on from an old post:
When there is no cloud connection, it seems that Particle.connect() disconnects and quickly (re)connects WiFi.
This is not ideal when one is running TCPClient and TCPServer for intranet communications (ie no cloud required for this functionality).
@rickkas7’s excellent solution is necessary in any case: [SOLVED] TCPCLIENT intranet connection fails if no cloud connection, but is there some way of stopping this behaviour of Particle.connect()? To me it does not make sense to drop the WiFi connection when there is no cloud.
No doubt a Device OS change required…