# \[UDP library\] Is it okay to have more UDP client users?

**URL:** https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516
**Category:** Libraries
**Created:** [April 22, 2022, 9:22am UTC](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516 "2022-04-22T09:22:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [April 22, 2022, 9:22am UTC](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516/1 "2022-04-22T09:22:21Z")

</div>

[UDP library] Is it okay to have more UDP client users?

 ![fig](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/5/d/5d9824f106a92d3d8b65b0b92b681e40632313f9.jpeg)

hello. nice to meet you.  
Please refer to the picture above.

1. Multiple clients connect to one computer.
2. Client continues to connect.
3. Clients are still connected and the number is increasing.

Q1) How many is possible?  
Q2) If you keep connecting, it will be hard on the server computer, right?

---

<div class="post-metadata">

### Author: ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)
#### Post date: [April 24, 2022, 8:39pm UTC](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516/2 "2022-04-24T20:39:24Z")

</div>

Hi @GWAK,

For the maximum number of UDP clients exchanging with a server, please refer to those links I found:

> <https://stackoverflow.com/questions/15907140/is-there-a-practical-limit-of-clients-that-a-udp-server-can-simultaneously-handl>

> **[What is the maximum number of concurrent UDP connections system support?](https://www.quora.com/What-is-the-maximum-number-of-concurrent-UDP-connections-system-support)**
>
> Answer: Zero. UDP does connectionless communication; any notion of a connection would be layered on at at a higher level (e.g. Google’s QUIC).
> 
> A UDP server could therefore send/receive traffic from a theoretically unlimited number of address/port...

Basically since UDP is connection-less, your server is only receiving and sending packets from clients and not maintaining connection states.

Quoting:

> A UDP server could therefore send/receive traffic from a theoretically unlimited number of address/port combinations. The server code simply inspect incoming packets for source address and port, then sends any responses back that way.

So yes it will depend on your resources (network, hardware) and server code performance.

---

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [April 24, 2022, 10:52pm UTC](https://discourse.processing.org/t/udp-library-is-it-okay-to-have-more-udp-client-users/36516/3 "2022-04-24T22:52:42Z")

</div>

@josephh

Thank you for good material. This is the answer I want.

Thank you very much for your reply.
