Skip to content

Webrtc not able make connection if different router on same wan network #4214

Closed Answered by aler9
pnthai88 asked this question in Questions
Discussion options

You must be logged in to vote

Hello, when there are routers / NAT / firewalls between MediaMTX and clients, you have to make sure that routers are forwarding incoming requests to MediaMTX.

If you're able to establish a contact (i.e. view the web page) of MediaMTX from a client, it means that you can already reach the server through an IP and through TCP port 8889. What you are missing is the ability to reach the server from the same IP and UDP port 8189 (webrtcLocalUDPAddress).

Another required thing is that you need to insert the server external IP (192.168.0.2?) inside webrtcAdditionalHosts, because readers need to know it explicitly:

webrtcAdditionalHosts: [192.168.0.2]

No STUN or TURN servers are required, you don…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pnthai88
Comment options

Answer selected by pnthai88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants