You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deployed MediaMTX on a server with dual stack IP and a NAT. (actually a homelab)
And I set up port forwarding to expose 8189 and 8889 with both tcp&udp, and then DDNS to the server.
e.g. v4.example.com and dualstack.example.com
The former has only A record and the latter has both A and AAAA record
When using dual stack host, clients prefer to use IPv6, which should be a good thing
However, I found that whip/whep connections through IPv6 does not work well, while IPv4 does
Seems that only handshakes can be established, stream data are not transfered:
2024/04/11 16:39:48 INF [WebRTC] [session 556ebd06] created by [Client IPv6 Address]:4045
2024/04/11 16:39:59 INF [WebRTC] [session 556ebd06] closed: deadline exceeded while waiting connection
IPv6 does not work whatever I set in config, as long as I use the dual stack host in webrtcAdditionalHosts
webrtcLocalUDPAddress: :8189 or ''webrtcLocalTCPAddress: ''or :8189webrtcIPsFromInterfaces: no or yeswebrtcIPsFromInterfacesList: [] or enp2s0webrtcAdditionalHosts:
- dualstack.example.comwebrtcICEServers2: [] or Google STUN Server
Describe how to replicate the issue
Start the server
Publish with OBS/Browser
Read with Browser
By the way, I tried on multiple devices:
Publish:
OBS 30.1.2 on Win & Linux
Chrome on Win, Linux, and iPad
Read: Chrome on Win, Linux, iPad, and Android
Did you attach the server logs?
yes
Notice that I use caddy to mux the live and api
So that the log may look weird, but it doesn't affect the bug
Here's the Caddyfile if you need
Sorry that I removed some of the dump out of security reasons
I filtered the packages with src&dst of the server ip, and the clienthello packages are removed
Feel free to contact me if any important information is filtered
Which version are you using?
v1.6.0
Which operating system are you using?
Describe the issue
I deployed MediaMTX on a server with dual stack IP and a NAT. (actually a homelab)
And I set up port forwarding to expose 8189 and 8889 with both tcp&udp, and then DDNS to the server.
e.g.
v4.example.com
anddualstack.example.com
The former has only
A
record and the latter has bothA
andAAAA
recordWhen using dual stack host, clients prefer to use IPv6, which should be a good thing
However, I found that whip/whep connections through IPv6 does not work well, while IPv4 does
Seems that only handshakes can be established, stream data are not transfered:
An example of IPv4 working config:
IPv6 does not work
whatever
I set in config, as long as I use the dual stack host inwebrtcAdditionalHosts
Describe how to replicate the issue
Did you attach the server logs?
yes
Did you attach a network dump?
yes
ServerLog
NetDump.zip
The text was updated successfully, but these errors were encountered: