# How to check the port usage

**URL:** <https://mediasoup.discourse.group/t/how-to-check-the-port-usage/5280>\
**Category:** Deployment & Scalability\
**Created:** [June 9, 2023, 7:40am UTC](https://mediasoup.discourse.group/t/how-to-check-the-port-usage/5280 "2023-06-09T07:40:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zaidiqbal](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/zaidiqbal/32/1498_2.png) [@zaidiqbal](https://mediasoup.discourse.group/u/zaidiqbal)\
**Post date:** [June 10, 2023, 12:10pm UTC](https://mediasoup.discourse.group/t/how-to-check-the-port-usage/5280/4 "2023-06-10T12:10:40Z")

</div>

> [@Huai](#):
>
> - Is Producer, Consumer, pipeProducer and pipeConsumer all cost the CPU resources, but only Producer and Consumer cost the CPU’s ports ?

All of these use CPU resources, and regarding the port it is the transport which occupies port.

> [@Huai](#):
>
> So if my computer can afford it, the number of people in the meeting can be √65535 persons (almost 255 person) in ideal situation ?

Yes you can have n number of person in one meeting if your architecture supports it.

I think you are more concerned about the port usage, and are worried if the ports can get short. No need to worry about it, in latest version of mediasoup you don’t need to specify port range, you just specify one port and everything happens on that, check here:

> [@mediasoup 3.10.0 released with the new WebRtcServer class (listen into a single port)](https://mediasoup.discourse.group/t/mediasoup-3-10-0-released-with-the-new-webrtcserver-class-listen-into-a-single-port/4313):
>
> Hi all, mediasoup 3.10.0 has been released. Among other improvements, it comes with a new feature that will make the devops guy at your company happy: The new WebRtcServer class that brings to WebRtcTransports the ability to listen on a single UDP/TCP port (or N specified ports) per mediasoup Worker. PR: [WebRtcServer by ibc · Pull Request #834 · versatica/mediasoup · GitHub](https://github.com/versatica/mediasoup/pull/834/) PR in mediasoup-demo project (WebRtcServer class usage example): [Use WebRtcServer by ibc · Pull Request #110 · versati…](https://github.com/versatica/mediasoup-demo/pull/110)

---

_[View the full topic](https://mediasoup.discourse.group/t/how-to-check-the-port-usage/5280)._
