-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Clients behind Non-symmetrical NAT failed to connect with each other. STUN servers worked only for clients within same network #872
Comments
Try using config iceServer with It solved my problem. For more info check the https://github.com/feross/simple-peer/blob/d47e7ce672ee7d36ac00d28cd5ce46f95535f644/README.md#connection-does-not-work-on-some-networks relevant source Lines 1038 to 1048 in f1a492d
Instantiation example: new SimplePeer({
trickle: true,
initiator: true/false,
config: {
iceServers: [
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:global.stun.twilio.com:3478?transport=udp' }
]
},
}) |
It seems like
I have tested using this tool: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ Our issue may or may not be related to non-symmetrical NAT. Clients connected to the same VPN node (with the same public IP) are not able to establish WebRTC connections but can connect to STUN servers and get a public IP When we use the JS fiddle on this page while connected to VPN, it returns "normal NAT": When we add two STUN servers to the trickle ICE testing page (link above) in Firefox, we see two "srflx" responses with the public IP and different ports. I understand sometimes that means it is a symmetric NAT. We have so far been unable to determine whether this is a NAT, VPN, WebRTC, or simple-peer issue. Any ideas on how we can narrow this down? |
What version of this package are you using?
Latest from NPM
What happened?
Connection with video stream failed. All similar issues answers suggest that TURN server is required to solve it BUT accordingly to RFC this ONLY should be required to connect clients when at least one of clients is behind symmetric NAT.
NAT was tested with that tool repo
What did you expect to happen?
Connection to be created.
Are you willing to submit a pull request to fix this bug?
I have no idea why it doesn't work, unfortunately :(
The text was updated successfully, but these errors were encountered: