Replies: 2 comments
-
Tried running coturn on the server and published its 3478 port and a range of ports for it to have forwarded. Still no luck. |
Beta Was this translation helpful? Give feedback.
-
Hello, in your configuration you are mixing If you want to provide your users a fixed UDP or TCP port, which they can connect to, you have to open all firewalls towards that port (that by default is 8189 UDP), start from the default configuration and add webrtcLocalUDPAddress: :8189
# Address of a local TCP listener that will receive connections.
# This is disabled by default since TCP is less efficient than UDP and
# introduces a progressive delay when network is congested.
webrtcLocalTCPAddress: ''
# WebRTC clients need to know the IP of the server.
# Gather IPs from interfaces and send them to clients.
webrtcIPsFromInterfaces: yes
# List of interfaces whose IPs will be sent to clients.
# An empty value means to use all available interfaces.
webrtcIPsFromInterfacesList: []
# List of additional hosts or IPs to send to clients.
webrtcAdditionalHosts: [] If instead you want to use the STUN method, in which sets of random ports are chosen from the client side and the server side, and the UDP hole punching technique is used to establish a connection, you have to use webrtcICEServers2:
- url: stun:stun.l.google.com:19302 If none of the methods described here and in the README works, use a TURN server. If that still doesn't work, it means that either the server or clients cannot access the single TCP port that is needed for the TURN server to work. |
Beta Was this translation helpful? Give feedback.
-
Question
So I have this config:
I'm running mediamtx in docker like this:
172.16.1.2
is traefik which forwards requests fromhttps://mypublichostname/stream/
to192.168.1.2:1989/stream/
I forwarded
udp://wanip:8189
to192.168.1.2:8189
I start a ffmpeg stream ... I can view it just fine in HLS so that should be working fine.
In the browser (even locally directly to 192.168.1.2:1989/stream/ I see:
What did I miss?
Beta Was this translation helpful? Give feedback.
All reactions