NAT Traversal problem!

332 views
Skip to first unread message

k.geo...@cst-bg.net

unread,
Sep 9, 2013, 9:15:43 AM9/9/13
to pee...@googlegroups.com
Hi PeerJS team,
Firs i want to tell you GREAT WORK.I have been using peerjs and its works perfectly on local network. I want it to test it how good is behind NAT but there is no positive resaults. It cant pass the NAT.

Greetings,
Kostadin

roe...@gmail.com

unread,
Sep 10, 2013, 7:18:48 AM9/10/13
to pee...@googlegroups.com
First I have to agree with the GREAT WORK comment :)

I just found out today a problem that's sounds similar to yours.
I'll post logs tomorrow if you think it's relevant. 
This issue only happens when I try to open a peer connection in an "Enterprise" like networks (big company offices, McDonald, universities etc...). Which makes me suspect NAT as well, although I have to admit this area is not my strong side.
The problem I'm having is when I create a new Peer() and send a POST command to the server under https://www.***.com/peerjs/%%%% , it receives an error and the process stops.
My peer server listens on port 9000. 

Do you think these problems are related?

Kostadin Georgiev

unread,
Sep 10, 2013, 8:30:59 AM9/10/13
to pee...@googlegroups.com
I found a description in PeerJS page which clearly say that: Peers behind symmetric NAT can't be connected without signaling server and the PeerJS server haven't this option.

A very low percentage of users are behind symmetric NATs. When two symmetric NAT users try to connect to each other, NAT traversal is impossible and no connection can be made. A workaround is to proxy through what is known as a TURN server. The PeerServer cloud service does not provide a TURN server. You'll have to find your own. You can pass a TURN server into the Peer object options. This will allow your PeerJS app to work seamlessly for this situation

Eric Zhang

unread,
Sep 10, 2013, 1:01:33 PM9/10/13
to Kostadin Georgiev, peerjs
@roe...@gmail.com, @Kostadin

Hmm if a connection is failing at that step then something is going on other than symmetric NAT.
When the symmetric NAT is the problem, you'll see all the steps complete but not data connection open event will fire.

@roeeyud, can you send me some console output or the network panel logs on that failed POST request?


On Tue, Sep 10, 2013 at 5:30 AM, Kostadin Georgiev <k.geo...@cst-bg.net> wrote:
I found a description in PeerJS page which clearly say that: Peers behind symmetric NAT can't be connected without signaling server and the PeerJS server haven't this option.

A very low percentage of users are behind symmetric NATs. When two symmetric NAT users try to connect to each other, NAT traversal is impossible and no connection can be made. A workaround is to proxy through what is known as a TURN server. The PeerServer cloud service does not provide a TURN server. You'll have to find your own. You can pass a TURN server into the Peer object options. This will allow your PeerJS app to work seamlessly for this situation



roe...@gmail.com

unread,
Sep 12, 2013, 4:51:25 AM9/12/13
to pee...@googlegroups.com, Kostadin Georgiev
Attached are a few of the errors I saw on the network panel.
These logs are all from the same session.
I would post more from this session but I'm not sure if the user just retried to establish connection a few times because the messages seem to repeat themselves.

Thanks! 
Failed Post_0.png
Failed Post_1.png
Failed Post_2.png

roe...@gmail.com

unread,
Sep 22, 2013, 9:57:49 AM9/22/13
to pee...@googlegroups.com, Kostadin Georgiev, Eric Zhang
hey Eric did you get a chance to check the logs I've sent you?

roe...@gmail.com

unread,
Sep 30, 2013, 8:06:12 AM9/30/13
to pee...@googlegroups.com, Kostadin Georgiev, Eric Zhang
Hey Eric your comment about using port 80 worked!!!! Thanks again!
Reply all
Reply to author
Forward
0 new messages