Skip to content
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

Has anyone been able to get this to work over the internet? #39

Open
pbafff opened this issue Jun 11, 2019 · 3 comments
Open

Has anyone been able to get this to work over the internet? #39

pbafff opened this issue Jun 11, 2019 · 3 comments

Comments

@pbafff
Copy link

pbafff commented Jun 11, 2019

The streamer only seems to work if both peers are on the same machine or the same local network. The only way I've gotten it to work over the internet is by connecting my desktop to my cloud vm with openvpn. I thought the problem was that stun servers aren't being used so I added stun:stun.l.google.com:19302 to the peer connection config in both webrtc_client.cpp and webrtc_ros.js but no luck. chrome://webrtc-internals/ shows that iconnectionstatechange is failed but I don't know enough about webrtc to interpret that.

@roehling
Copy link
Collaborator

The problem lies in the NAT traversal, which is almost always required for machines connecting over the Internet. There is a long-standing wishlist bug (#24) for that, but I haven't looked into it yet.

As always, if someone wants to work on it and submit a PR, I'd be more than happy to add such a feature.

@pbafff
Copy link
Author

pbafff commented Jun 12, 2019

Do you have any guesses as to what exactly is wrong? I'm going to try to solve this and submit a PR if i get it.

@pbafff
Copy link
Author

pbafff commented Jun 13, 2019

Ok so it looks like the streamer only generates host ice candidates. Wireshark shows that it never gets any responses from the stun or turn servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants