I am looking for some advice on how to access a TCP/IP server on the Arduino using multiple clients.
I am using an Arduino UNO with Wifi Shield to connect to a local wireless network. I am able to get the Arduino to set up a server which I can then connect to using a telnet. I also programmed a LabVIEW VI to create a TCP/IP Client and connect to my Arduino server. The Client can read data sent from the server and send commands back (currently just a stop test command).
The issue I am running into is when I try to connect multiple clients to my server. If, for example, I have the LabVIEW VI connected and displaying the data it was sent, I cannot make a connection from a telnet app I have on my smartphone. Although the telnet can see the network, it does not connect; it simply indicates that it’s connecting until it times out. On occasion, when I’ve tried to make a second connection, the original connection crashed.
Being open to multiple client connections is important for my application. I am wondering if the issue is that the Arduino stops looking for connections once it’s made the one but I am not sure if this is the problem or, if it is, how to fix it. I’ve not been able to find any relevant threads on the subject although it seems like an important topic. I am hoping that the community can give me some direction.
Hoping to hear from you,