3 ms·
So for keeping something in ipfs you need to have a server running ipfs seeding the files. You can use ipfs.js but it still needs to connect to an IPFS server.
by vishnu_ks 8y ago
So for keeping something in ipfs you need to have a server running ipfs seeding the files. You can use ipfs.js but it still needs to connect to an IPFS server. Webtorrent don't require any server running. All you need is the webtorrent.js file. That said you can still use a third party service like Infura for putting files in IPFS without running your own server. But Infura discards the file after seeding it for like 2 weeks. So you are not in total control of the file. In webtorrent you don't need any third party service. All you need is a browser with the webtorrent.js file. At the same time it is reccomended to run a STUN server to increase the reach of the files seeded by your webtorrent application. If you are creating a webtorrent application without a STUN server chances are that a lot of people would not be able to connect to it. I think IPFS on the other hand don't have this issue. Once a file is uploaded and is seeded by atleast one server it should be accessible to everyone else. (I am not 100% sure about this though). So choose wisely.
- temp64201292 8y ago> At the same time it is reccomended to run a STUN server to increase the reach of the files seeded by your webtorrent application. Or just start using IPv6 already.
- StavrosK 8y agoBut the problem with Web Torrent is that the seeds go away when you close the tab, whereas with IPFS the page keeps getting seeded.
- diegorbaquero 8y agoYou can use webseeds so it works even when there are no peers
- vishnu_ks 8y agoIt is also the advantage of webtorrent. All a person need to seed a file in webtorrent is open a browser window. You can't rely on users of your application to start an IPFS server and seed the files. If you want to seed a file for long term you can use the webtorrent-cli or webtorrent app as well.