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 upWebTorrent in a LAN setting without Internet connection #636
Comments
This comment has been minimized.
This comment has been minimized.
|
Right now there's no way for peers to connect without using a signaling server. Fortunately, you can run one of these easily on your own local network. The package is called
Ensure that the client.add(torrentId, { announce: [ 'http://localhost:8000/announce', ... ] }That should be it. Enjoy. |
This comment has been minimized.
This comment has been minimized.
|
"Right now there's no way for peers to connect without using a signaling server. " |
This comment has been minimized.
This comment has been minimized.
|
have a look at #288 I guess |
This comment has been minimized.
This comment has been minimized.
|
I want to connect peers only by using torrent.addPeer(). The signaling data should be exchanged via QR-Codes. I want to put all peers into one single swarm. |
This comment has been minimized.
This comment has been minimized.
|
Yes, I bet that's already possible. Did you try it ? |
This comment has been minimized.
This comment has been minimized.
|
"Yes, I bet that's already possible." I found the bug. |
This comment has been minimized.
This comment has been minimized.
|
Nice! |
This comment has been minimized.
This comment has been minimized.
|
Do you have an offline implementation for wss://tracker.webtorrent.io? I am looking to create an 'offline' tracker (similar to that of bittorrent-tracker) that runs on wss:// protocol to support webrtc (related #325) |
This comment has been minimized.
This comment has been minimized.
|
@shinp I don't know what you mean by "offline implementation". The tracker needs to be reachable by the peers. You can, of course, run a tracker that's only accessible on your local network. Peers can only connect to each other if they can both reach the same tracker. |
This comment has been minimized.
This comment has been minimized.
|
EDIT: So there is nothing wrong with the bittorrent-tracker; I've made it connect to tracker wss://<local_address> and it works fine on the webtorrent-desktop <-> instant.io <-> simple html demo. Unfortunately, I discovered that webtorrent-hybrid does not work well on windows for webrtc given that I'm not using xvfb ~ is there any work around to this or special installation instructions? |
This comment has been minimized.
This comment has been minimized.
|
isn't it possible to use DHT in a (big) LAN? |
Out of a software developer perspective:
How can I set up a WebTorrent network in a LAN without Internet connection?
It can be taken for granted that all members of the LAN can exchange signaling information.
Preferably the solution does not need a tracking/bootstrap server.
Probably a related question:
How can I connect a peer to a WebTorrent network without the help of a tracking/bootstrap server.
It can be taken for granted that the peer who wants to connect to the WebTorrent network can exchange information with a peer out of the WebTorrent network.