-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running inside docker, server not sending signal with external IP #53
Comments
I saw this new option in Libdatachannel: "iceTransportPolicy", does it support that? |
“iceTransportPolicy” is not related to your issue. |
It has root permissions inside docker only (no network admin permissions to the vm), is that the problem? |
With network root permissions, it would get the current external ip from the server interfaces. But the ICE server does not supposed to give an external candidate? |
The problem is about the docker. |
The symptom indicates the STUN server could not be reached.
If you mapped the UDP ports manually to the container, you shouldn't try to rely on STUN. The two approaches are:
Just a note: you shouldn't use multiple STUN servers. Browsers will try to query all of them, slowing down the connection process, whereas libdatachannel will just pick one. Also, the |
I think the IP replacement or the docker parameter to use host network can fix that for now. |
Indeed, I'm not sure about how Docker maps the ports, but the problem might actually linked to the fact that the STUN server will be queried from the mapped range. As the outgoing datagrams do not match a previous mapped incoming request, they might be dropped. |
I'm running datachannel in a server as an alternative channel to WS to stream data.
But i'm having problems to stabilish a connection, when i checked, the server side (datachannel) was not sending it's external ip in the signal. It looks like datachannel is only sending local ips, then my system timeouts after 8s trying.
Any ideas? Thanks in advance.
Server side:
this.conns[id].peer = new nodeDataChannel.PeerConnection("randomid"+ "_server", { portRangeBegin: 4000, portRangeEnd:4100, iceServers: [ 'stun:stun.l.google.com:19302', 'stun:stun4.l.google.com:19302', 'stun:global.stun.twilio.com:3478?transport=udp' ] });
Signals
Obs: The udp ports are mapped in the container.
The text was updated successfully, but these errors were encountered: