# \[SOLVED\] TCPCLIENT intranet connection fails if no cloud connection

**URL:** <https://community.particle.io/t/solved-tcpclient-intranet-connection-fails-if-no-cloud-connection/24684>\
**Category:** Troubleshooting\
**Created:** [July 28, 2016, 1:19pm UTC](https://community.particle.io/t/solved-tcpclient-intranet-connection-fails-if-no-cloud-connection/24684 "2016-07-28T13:19:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [July 29, 2016, 1:24pm UTC](https://community.particle.io/t/solved-tcpclient-intranet-connection-fails-if-no-cloud-connection/24684/7 "2016-07-29T13:24:35Z")

</div>

> [@rickkas7](#):
>
> I don’t think Particle.process() is the cause because at least with system thread enabled, which you should set, you can call it even when not connected to the cloud and nothing bad happens.

With or without `SYSTEM_THREAD(ENABLED)` `Particle.process()` won't cause any trouble.  
But other commands (e.g. at least `Particle.publish()` used to) should be wrapped in an  
`if (Particle.connected()) { ... }`

---

_[View the full topic](https://community.particle.io/t/solved-tcpclient-intranet-connection-fails-if-no-cloud-connection/24684)._
