-
Notifications
You must be signed in to change notification settings - Fork 96
Listening for calls behind NAT #152
Comments
What you're describing should work. The public signaling server might currently be having issues (// cc @victorbjelkholm). Have you tried running your own public (as in not NATed) signaling server? |
I have not, I'll give that a shot and let you know what happens. Thanks! |
@dryajov So I just connected both peers to my own signaling server hosted in the cloud, and had the exact same issue (NAT peer can dial non-NAT peer, but not the other way around). Any thoughts? I am on public coffee shop wifi, but for my use case it would need to work for situations like this. |
@dryajov Wait false alarm, for some reason on further attempts it worked and calls could go through both ways! Thank you! |
Ok so the behavior seems to be really inconsistent. I tried it and both peers were able to dial one another seamlessly, but then after shutting both peers down and restarting them, neither could connect the next few times I tried. And then it worked again after a few tries inexplicably. Is there any reason for the inconsistency? |
This might be happening due to many different reasons, one might be that either of the nodes took longer to get connected to the rendezvous server. However, this still can be a legitimate issue, so lets keep an eye on it. If the issues persist, I suggest you create a new issues around it to track that behavior. |
Hello, I was wondering if anyone know how to get peers to connect when one (or, ultimately for my use case, both) are behind NAT. Right now, I'm running the same code on two peers -- one on my local computer behind a NAT router (call it machine A), and one on a cloud-based VM (call it machine B). I'm pointing both to the public signaling server and each is both trying to dial each peer with and listening for the same protocol string, and then sends a message. When machine A (behind NAT) tries to dial machine B (not behind NAT), machine B receives the message from machine A, and the machine A has this
Connection
object:However, when machine B tries to dial machine A, machine A doesn't receive a message and machine B's
Connection
object when it receives the dial from A looks like this:When I run this code on two VMs that aren't behind NAT, it works perfectly. How can I go about circumventing NAT to make this work? I thought that NAT traversal was built into the protocol.
The text was updated successfully, but these errors were encountered: