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

Question, ports problem? 2 machines 1 website #1662

Open
PaTiToMaSteR opened this issue Jul 3, 2019 · 4 comments
Open

Question, ports problem? 2 machines 1 website #1662

PaTiToMaSteR opened this issue Jul 3, 2019 · 4 comments

Comments

@PaTiToMaSteR
Copy link

@PaTiToMaSteR PaTiToMaSteR commented Jul 3, 2019

What version of WebTorrent?
0.20.0

Situation:

  • Machine A: WebTorrent Desktop
  • Machine B: WebTorrent Desktop
  • Web, to links: 1. Magnet to Machine A video, 2. Magnet to Machine B video

Watch A (magnet link)
Watch B (magnet link)

  • Copy paste of the webtorrent.io player, changing torrentId with the magnet link depending which link to press. No big deal.
  • The torrent only has my tracker, port 8000.

Result:

  • Both machines cannot see the video, unless...
  • I do a "trick", from Machine A I open the video so 2 peers, chrome and machine A
  • We can see the video
  • More info: Machine A and Machine B can see their own videos

QUESTION :)
I'm guessing is a port problem, either the tracker must be in port 80, or I need to fwd ports in my router, if so... as far I know we can't configure ports in WebTorrent Desktop.

Thanks a lot guys! Great project.

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Oct 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Oct 1, 2019
@alxhotel

This comment has been minimized.

Copy link
Member

@alxhotel alxhotel commented Oct 1, 2019

I don't understand the scenario.

So you have two machines (A and B) seeding the same or different video?

And then you have a browser (in a third machine) that can not download the video from any of the machines (A or B)?

But if you open a browser in machine A or B which downloads the video, then it triggers the third machine to start downloading it?

@stale stale bot removed the stale label Oct 1, 2019
@PaTiToMaSteR

This comment has been minimized.

Copy link
Author

@PaTiToMaSteR PaTiToMaSteR commented Oct 1, 2019

@alxhotel thanks for the answer, I solve it. I'm working on www.youmazeme.com project. Basically the content creator needs to have access through https to the .torrent file and everything else appears to work. I was just wondering what happens if the content creator is behind a CG-NAT. And I said I solve it because the content creator needs a server for the initial seeding of the content. I'm just wondering the way to use the home connection when they are behind CG-NATs or similar.

@alxhotel

This comment has been minimized.

Copy link
Member

@alxhotel alxhotel commented Oct 2, 2019

Ah good to know. For CG-NAT, I believe you can use some technique like UDP holepunching. But I think WebRTC does all the work for you (by using STUN and TURN servers), so that's why I don't understand why machine A and machine B were not able to communicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.