# How to connect two, or more, users in the same room?

**URL:** <https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520>\
**Category:** mediasoup libraries\
**Created:** [March 2, 2025, 5:47am UTC](https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520 "2025-03-02T05:47:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DevEwerton](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/devewerton/32/2796_2.png) [@DevEwerton](https://mediasoup.discourse.group/u/DevEwerton)\
**Post date:** [March 2, 2025, 5:47am UTC](https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520/1 "2025-03-02T05:47:25Z")

</div>

Hello everyone, how are you?  
First of all, I want to thank everyone for their support.  
I also want to say that I’m new to this SFU architecture and the mediasoup library, so bear with me!

Well, I cloned the project ([GitHub - versatica/mediasoup-demo: mediasoup official demo application](https://github.com/versatica/mediasoup-demo)), configured the certificates using openssl, on the Mac (Monterey, with Intel chip), I even installed the certificates themselves by running “generate-dev-certificate” from package.json. I also added the variables DOMAIN and MEDIASOUP\_ANNOUNCED\_IP, in the server’s .env, but the first one I left commented out, and MEDIASOUP\_ANNOUNCED\_IP had the value 127.0.0.1. I started the server (and apparently without errors) and the app (also without errors, just a warning of a dependency on the front that will be unavailable). When I enter the url  
([https://localhost:3000/?roomId=z7ln1qpx](https://localhost:3000/?roomId=z7ln1qpx)), with two different users, in two different tabs, only the video/audio of the screen user appears and not the (also) remote user. So I ask; what is really happening? Apparently, it’s as if the users weren’t in the same room…  
Thank you very much in advance for everything.

---

<div class="post-metadata">

**Author:** ![lidedongsn](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/lidedongsn/32/2597_2.png) [@lidedongsn](https://mediasoup.discourse.group/u/lidedongsn)\
**Post date:** [March 11, 2025, 8:21am UTC](https://mediasoup.discourse.group/t/how-to-connect-two-or-more-users-in-the-same-room/6520/2 "2025-03-11T08:21:19Z")

</div>

> [@DevEwerton](#):
>
> MEDIASOUP\_ANNOUNCED\_IP

MEDIASOUP\_ANNOUNCED\_IP need to fill in the actual communicationable ip of your machine
