webtorrent / webtorrent-hybrid

WebTorrent (with WebRTC support in Node.js)
https://webtorrent.io
MIT License
516 stars 98 forks source link

WebRTC peer, not working the linux cli #151

Closed drakonkat closed 2 years ago

drakonkat commented 2 years ago

What version of this package are you using? 5.0.2,v4.1.3

What operating system, Node.js, and npm version? Linux debian/ubuntu, tried on node 14,16,latest, docker too, npm version 6,7,8

What happened? Simply not working the hybrid version, so i downloaded with "npm install webtorrent-hybrid -g", tried to download/seed file but it connects only to udp source and not web source.

What did you expect to happen? That it will work on every source like hybrid have to do. (I tried on windows and it simply works)

Are you willing to submit a pull request to fix this bug? I can try to help, i can give access to my test VPS for test and make some active test with no problem. But i cannot undestand the problem.

I suppose it's because is a VPS and has problem with the "WRTC" unfortunatly i cannot find log or hint about the error, because everything seems to work on the cli. If there is some suggestion on what i can check.

DiegoRBaquero commented 2 years ago

Do you control the WebRTC peer? Are you downloading or uploading in the VPS?

drakonkat commented 2 years ago

I have tried both, uploading and downloading. With normal upd user works otherwhise no

drakonkat commented 2 years ago

I don't know how to figure it out, if you want i can open a nodejs container on docker, and give access to the cli (I can send you credential on discord) and the list of the command that i have runned

DiegoRBaquero commented 2 years ago

It's probably related to the wrtc package. That's why there are a bunch of similar issues :(

Please enable debug logs by doing DEBUG=* webtorrent-hybrid ... and see if there anything telling in the logs

drakonkat commented 2 years ago

Yes i have attached the log, now i see some error i will try to investigate too log_seed_file.log

drakonkat commented 2 years ago

Is there a way i can help? i'm trying to figureout the problem... i suppose is the wrtc dependencies which is no longer supported a lot. And i'm trying to rebuild it direct in a docker image to understand if i can make it work

drakonkat commented 2 years ago

Ok i find out something, if i take ufw on a clean ubuntu install, and launch ufw default allow incoming the webtorrent-hybrid-cli start working, it works in docker and in a normal VPS (I made some test)

So probably to work the web peer need to have some port opened but i don't know which port (It's not optimal keep every port opened (I tried 8080,80,443,3000,8000,8888,9000,51413,9876 but no one resolved my problem)

@DiegoRBaquero do you know which port is used exactly in incoming way? (I suppose fail the request of the metadata from the web peer)

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

drakonkat commented 2 years ago

Yes still relevant

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?