Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upOnly show used candidates on https://webtorrent.io/ #578
Comments
This comment has been minimized.
This comment has been minimized.
|
The private IPs are actually connected wires which transfer data to you. If not private, they are peers using public IPs. |
This comment has been minimized.
This comment has been minimized.
|
Well ofc they are sending data, however it does not make sense showing host candidates that I can never connect to directly to (no one else on this network is visiting that page besides it displays private IP's on different subnets) thus the demo is not correctly conveying which endpoint I have established a peerconnection to. |
This comment has been minimized.
This comment has been minimized.
|
Those are not candidates, else there would be more than 30 instantly. The shown peers are connected peers, not candidates.
|
This comment has been minimized.
This comment has been minimized.
|
Right, what I meant is that I cannot possibly connect to private IP's from my network (unless they are on my network) hence it looks like there something wrong with demo. As you mentioned, they are connected peers hence it makes sense displaying the IP address that I'm actually connected to. It looks like you are using "any" candidate as a peer identifier in the demo rather than the actual connected IP address. Does that make sense? |
This comment has been minimized.
This comment has been minimized.
|
@KaptenJansson Thanks for opening this issue. You are correct. Sometimes local IP address candidates are mistakenly shown on https://webtorrent.io. This is a bug in I was able to fix this bug in Chrome, but it still exists in Firefox, as you can see here: feross/simple-peer#63 If you're interested, please contribute a fix! (I'm going to close this issue here, since it's already being tracked on the |
This comment has been minimized.
This comment has been minimized.
|
This is fixed now! Released in |
Also fixes webtorrent/webtorrent#578
This comment has been minimized.
This comment has been minimized.
|
Good stuff ;) When will it be pushed to webtorrent.io? |
This comment has been minimized.
This comment has been minimized.
|
It's published to webtorrent.io now. |
This comment has been minimized.
This comment has been minimized.
|
Just tested it and now I just see public-ally accessible IP addresses, awesome! |
This comment has been minimized.
This comment has been minimized.
|
@KaptenJansson thanks! |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Currently https://webtorrent.io/ shows local host candidates with private IP addresses which I will never be able to access which indicates it displays the "first" (or some other type of selection) candidates seen.
Instead it should show reachable candidates that are actually used instead.