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 upMake a WebTorrent <-> BitTorrent proxy/relay #325
Comments
This comment has been minimized.
This comment has been minimized.
|
An interesting idea. Sounds like it would come in handy for some use cases, as you've described. |
This comment has been minimized.
This comment has been minimized.
|
Hello, I have one question: The wss://tracker.webtorrent.io tracker is than http bittorent tracker and their output is IP, port, peerid, etc. or is different? If is different, what is output? WebRTC peerid? Looking for a way how to make "bittorrent webrtc relay" because without it is not possible use browser downloading and streaming at this moment. Thanks for you answer and sorry for my English. |
This comment has been minimized.
This comment has been minimized.
|
The WebSocket tracker doesn't respond with "ip:port" like HTTP and UDP trackers do. It works a little differently. To get WebRTC peers connected, we have to do WebRTC signaling which is a bit more complicated than just sharing an "ip:port" string. If Peer A wants to connect to Peer B, the WebSocket tracker has to pass a message from Peer A to Peer B, then pass another message from Peer B back to Peer A. Then the peers can directly connect. I suggest inspecting the WebSocket traffic in the "Network > Frames" tab in the Chrome web console to get a better idea of what's going on. Eventually, this will be documented. |
This comment has been minimized.
This comment has been minimized.
|
May be good idea use webtorrent <-> BitTorrent gate as online cinema CDN. And i think so nice to have setup both seed and leech traffic limits. Maybe can further supplement the file meta-information describing the contents and localisation for the better search, and validate this from bitcoin like algorithm? |
This comment has been minimized.
This comment has been minimized.
|
Being able to run a proxy node would be very nice w.r.t. bridging the currently somewhat decoupled networks. It would be somewhat keen to acting as a Tor exit node, bridging the Deepweb with the ordinary Internet. I imagine a lot of the same legal issues would arise too, but like with Tor, I'm convince some people would like to facilitate it. @feross how much work do you estimate would be involved in creating such a bridge / proxy? |
This comment has been minimized.
This comment has been minimized.
This is exactly what I'm trying to do, I have a huge spare of dedicated servers with huge speed. |
This comment has been minimized.
This comment has been minimized.
|
This issue is not verry active but verry expected by lot of people. Resolving this would be like "little step for human, but big step for world" Can we hear:
|
This comment has been minimized.
This comment has been minimized.
|
I've created a simple bridge application using webseeds but creating a native webtorrent <-> bittorrent seed seems like a lot more work at the moment due to this active issue with webtorrent-hybrid. The bridge downloads the torrent file from the bittorrent network using This isn't an ideal implementation as a native implementation would be way more ideal but the webseed bridge was quite simple to hack together and get working. If people want I can upload the hacked together webseed solution to a repository if people are interested, though it could do with more work. Though personally I want to look into the feasibility of creating a real bittorrent <-> webtorrent bridge, hopefully when I get some free time over summer. |
This comment has been minimized.
This comment has been minimized.
|
It has been some time since we talked about this but https://webtor.io/ seems to pulled it off. It's not open source, but it is indeed possible to relay to the UDP network. Are people still interested in this idea? |
This comment has been minimized.
This comment has been minimized.
|
@Fenny count me in, if you want some help. Maybe we can talk about it in the webtorrent discord. |
This comment has been minimized.
This comment has been minimized.
|
Hello! Any update on this? I am currently hosting multiple servers. If I can be of any help don't hestitate to contact me. Regards, Djitn |
This comment has been minimized.
This comment has been minimized.
|
We went the way of exposing a dynamic webseed similar to what is explained by @SilentBot1 at https://seedess.com and it is open source. We've moved away from this so it is unmaintained: https://github.com/Seedess/webseed It allows you to request a webseed of a torrent dynamically by adding the hash to the URL. Example: if hosted on
It also generates Example: With these two you can immediately proxy any torrent file from bitTorrent to webtorrent and start the download immediately without peers (via webseed). I haven't looked at it in a while so it needs some work and documentation. |
This comment has been minimized.
This comment has been minimized.
|
I’m sorry for the late comment but thank you for your help and your time! |
Hello,
First of all, thanks for this awesome project and idea!
I am interested in using this project for a private torrent tracker in a private (without any internet access) network.
So I am looking for a way to bridge the BitTorrent Clients with the WebTorrent clients but without saving any data on the disk.
Right now webtorrent-hybrid will try to download the whole torrent from the BitTorrent Clients in order to seed it to the WebTorrent Clients (if I have understood this correctly from the documentation).
Since the network I want to implement this is private (meaning it does not have any Internet access - the network it's quite open for anyone to join) and does not have any bandwidth limits, it's preferable to waste bandwidth by 'relaying' the torrent data from the BitTorrent clients to WebTorrent clients, than downloading every torrent available on the network on a few WebTorrent Clients just to be able to seed them to the browsers.
Its quite a waste of disk space.
So, I was thinking about a way to proxy or relay the peers between the 2 networks (bittorrent<>webtorrent).
That way I could have for example a small software (the proxy/relay) that a few technical users might want to install and it will bridge the two networks between them. The only resource required would be a lot of bandwidth essentially (which is not a problem on the network I intend to use this).
This way the BitTorrent users/seeders won't have to change or do anything on their part, and the WebTorrent users/leechers will be able to enjoy the torrents directly from their browser.
Is this something you would be interested in implementing?
I don't know how difficult is it, or if it's at all possible to do this but it would be a really nice feature until the major torrent clients decide to add WebTorrent extensions to support talking to WebTorrent clients directly (I long for the day this happens :D )
Though I am not very savvy with Javascript, I am willing to provide any assistance you may need :)
Thanks again for your awesome work!