# \[SOLVED\]Refuse the second client to connect the server

**URL:** <https://community.particle.io/t/solved-refuse-the-second-client-to-connect-the-server/21150>\
**Category:** Troubleshooting\
**Created:** [March 17, 2016, 8:46am UTC](https://community.particle.io/t/solved-refuse-the-second-client-to-connect-the-server/21150 "2016-03-17T08:46:16Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [March 25, 2017, 4:46pm UTC](https://community.particle.io/t/solved-refuse-the-second-client-to-connect-the-server/21150/9 "2017-03-25T16:46:30Z")

</div>

Here's an example of a TCP server that allows multiple connections. It's actually a tiny HTTP server, but it only serves a single file. The important part is that it shows how to handle multiple connections, which is kind of confusing.

> [@Active TCPServer / Client appears to crash Photon when WiFi disconnects](https://community.particle.io/t/active-tcpserver-client-appears-to-crash-photon-when-wifi-disconnects/27130/2):
>
> I’m not sure why your test is crashing, but here’s what I tried: The Photon code is a simple web server that returns an index.html file. The server side code makes a new HTTP request to the Photon every second. I would disconnect the Ethernet to the access point for about 5 seconds, long enough to stop incoming connections but not go to blinking cyan. Then wait for things to stabilize again, then disconnect for long enough to go to blinking cyan. I repeated this 5 times, which was about 330 con…

---

_[View the full topic](https://community.particle.io/t/solved-refuse-the-second-client-to-connect-the-server/21150)._
