Run perfectly on local but can not get video/audio of others in a room when deploy on render.com

Hi everyone, I’ve spent the past week learning about mediasoup. My video room works fine when running locally, however after I deploy to render.com.
I can’t get the video and audio of other people in the room (black screen). No errors appear, the parameters of consumer and media tracks are returned well. Whether this has something to do with PORT or something, I don’t know I have no experience related to hosting.

Hosting on render.com

If you need to view what part of my code, comment below. Please help me, thanks a lot !!!

These JS objects are just independent local data, doing perfectly well with or without media streams. You should check what happens with the actual WebRTC connections. Look at chrome://webrtc-internals/.


It shows like this, can you have more instructions about this please

The domain won’t have an affect on this, media servers are reached directly by IP and port.

Confirm you have set the announcedIP correctly, opened ports and can grants a proper connection without blocks.


image
This my code, you can explain more about " grants a proper connection without blocks.", i have no knowledge about port and deploy.

Then you should learn at least some basics about network interfaces and ports. It all starts from there. 127.0.0.1 is the address of the virtual loopback interface, it is not reachable from outside. Announcing it as the server address, you are directing external clients to their own local loopback interfaces.

1 Like

I replace ‘127.0.0.1’ by one of public server IP below, but it still no works


Hmm, let me spend more time to learn about network interfaces and ports.
I will put my source code in here GitHub - nndang27/video_room . I know you guys are busy but if you can please take a moment to look at my code, it’s pretty simple.

1 Like

“Network requests from your service to the public internet…” suggests a service that is hosted on this render.com, makes some outbound requests and those requests come with one of the source addresses listed above. But this scenario is not siutable for mediasoup, because mediasoup server does not initiate connections. It just sits listening on some address and accepts inbound requests.

So you can suggesst what should i do now, this so tough with me to understand. Please give me some documents or code

Do run it on a test server first, before running it on something like render.com. Make it running on test server and then move it to renderer or whatever. This renderer may be causing problem in your case so get a small try server, run things there and then figure out what render.com can do for you.

1 Like

By the way, a simple search by the word ‘WebRTC’ on render.com community site gives this: Webrtc/udp server possible (the render.com server will be the central peer)? - Render

That means can not deploy mediasoup on render.com and heroku right ?. You have any other hosting suggestions