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 upHow to use command line seeding and downloading file? #334
Comments
This comment has been minimized.
This comment has been minimized.
|
Webtorrent-hybrid won't work on windows, and webtorrent as a cli won't connect to web clients. I think that this issue might have something to do with that. can you post your commands in windows as well? |
This comment has been minimized.
This comment has been minimized.
|
I don't run command line on windows |
This comment has been minimized.
This comment has been minimized.
|
@ericwooley The @zoudf My guess is that Virtualbox has a firewall that is blocking WebRTC connections. WebRTC usually finds a way to connect as long as one side doesn't have an overly restrictive NAT. In this case, with two VMs trying to connect to each other, I bet it's just failing to do NAT traversal. Here's something that is more likely to work: Try seeding from one of the VMs and downloading from https://instant.io using your normal web browser outside the VM. |
This comment has been minimized.
This comment has been minimized.
|
Another idea: try specifying a TURN relay server. This is a server that will get used to relay traffic between two peers that can't directly connect (like your two VMs). Just use the You can run your own TURN server or just use Twilio's service (it's super cheap). |
This comment has been minimized.
This comment has been minimized.
|
@feross Sorry if I miscommunicated, but I meant that the webtorrent-hybrid CLI does, and the regular cli does not. |
This comment has been minimized.
This comment has been minimized.
|
@ericwooley Gotcha. Thanks for clarifying. |
This comment has been minimized.
This comment has been minimized.
|
@feross Yes, after changed VirtualBox machine network setting: NAT--> Bridge. It works well. |
This comment has been minimized.
This comment has been minimized.
|
Nice. |
Thanks for the great project!
My pc : Window8.1 -> created two VirtualBox machines: Ubuntu14.04.2 64 bit
In both Ubuntu installed Webtorrent & webtorrent-hybrid
I'm using command line in one example :A
zdf@zdf-VirtualBox64:~$ webtorrent-hybrid seed aa.txt
seeding: aa.txt
magnet uri: magnet:?xt=urn:btih:c53c2bb5059ad3406100cffdc269dbca7e57db40&dn=aa.txt&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.webtorrent.io%3A80&tr=wss%3A%2F%2Ftracker.webtorrent.io
speed: 0 B/s downloaded: 0 B/16 B uploaded: 0 B peers: 0/0 hotswaps: 0
time remaining: a few seconds remaining total time: 996s queued peers: 0 blocked: 0
In other example:B
zdf@zdf-VirtualBox64:~$ webtorrent-hybrid magnet:?xt=urn:btih:c53c2bb5059ad3406100cffdc269dbca7e57db40
fetching torrent metadata from 0 peers
No mater use webtorrent-hybrid or webtorrent command
"B" always not start download.
Eventually I use another PC open chrome -> instant.io download the hash upper.
It can download at instant.io! and then "B" downloaded from chrome
How to use command line only and transfer each other?