Comments (7)
Yeah, this is a limitation of the browser. The browser can't make TCP or UDP connections for security reasons. No browsers can do this.
from instant.io.
UDP totally makes sense but why can't the browser query the http interface?
from instant.io.
Assuming the http tracker set the correct cross-origin headers (unlikely), what would the browser do with the resulting ip:port addresses that the tracker returns? It can't make TCP connections, so it's not very useful.
The browser can only make webrtc connections.
from instant.io.
Oh I certainly agree the connections to peers would have to be websocket. I'm unfamiliar with the details of WebTorrent. Are the peers returned by the websocket tracker in a different format than the http version to distinguish them as websocket? The idea here is that websocket clients could still use something like opentracker rather than being restricted to bittorrent-tracker (not that there's anything wrong with it, just for ease of setup).
—
Sent from Mailbox
On Fri, May 29, 2015 at 12:45 PM, Feross Aboukhadijeh
[email protected] wrote:
Assuming the http tracker set the correct cross-origin headers (unlikely), what would the browser do with the resulting ip:port addresses that the tracker returns? It can't make TCP connections, so it's not very useful.
The browser can only make webrtc connections.
Reply to this email directly or view it on GitHub:
https://github.com/feross/instant.io/issues/52#issuecomment-106913424
from instant.io.
Sorry that this isn't clearer from the documentation. I'm working on improving docs. Right now, webtorrent in the browser MUST use a websocket tracker. The only implementation of a websocket tracker is currently the bittorrent-tracker
package. Maybe opentracker could support websockets in the future? But until then, you have to use bittorrent-tracker
.
The peers returned from the websocket tracker are fundamentally different than those for normal bittorrent. Normal bittorrent returns "ip:port" addresses. The websocket tracker returns webrtc offer/answers. It's a bit more complicated :)
from instant.io.
Ahh I see thanks for clearing that up. Is there a more formal spec for the websocket tracker RPC? Or is it just the code right now?
—
Sent from Mailbox
On Fri, May 29, 2015 at 1:11 PM, Feross Aboukhadijeh
[email protected] wrote:
Sorry that this isn't clearer from the documentation. I'm working on improving docs. Right now, webtorrent in the browser MUST use a websocket tracker. The only implementation of a websocket tracker is currently the
bittorrent-tracker
package. Maybe opentracker could support websockets in the future? But until then, you have to usebittorrent-tracker
.The peers returned from the websocket tracker are fundamentally different than those for normal bittorrent. Normal bittorrent returns "ip:port" addresses. The websocket tracker returns webrtc offer/answers. It's a bit more complicated :)
Reply to this email directly or view it on GitHub:
https://github.com/feross/instant.io/issues/52#issuecomment-106923091
from instant.io.
Right now it's just the code, but it's quite simple. It's very similar to the current tracker spec, but with a few changes to accommodate webrtc. I'll write up a formal spec asap.
from instant.io.
Related Issues (20)
- "Unsupported file type ... .xz ... Cannot append to DOM" HOT 2
- https://instant.io/ please help me
- https://instant.io/ please help me HOT 7
- Make it more clear that instant.io only works with torrents shared by webtorrent peers HOT 1
- Please Add Big green button with link magnet source. HOT 1
- Tracker is apparently down HOT 3
- Too many STUN servers used
- Add Docker support HOT 1
- instant.io does not work. HOT 1
- instant.io broke my magnetic links HOT 55
- chrome被点击任何一个网站的magnet链接都会跳转到instant.io,无法弹出外部BT下载软件 HOT 2
- App is down HOT 2
- Allow torrents to be paused
- Add Docker file to the project HOT 1
- instant.io not working? HOT 3
- Dependency Dashboard
- Allow users to specify the tracker list
- Add NAT checker in client.js HOT 2
- It does not work on Firefox. Brave and MS Edge HOT 1
- instant.io does not work on Android HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instant.io.