Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add Click'n'Load 2 support #7

Open
Anuskuss opened this issue Dec 17, 2017 · 17 comments
Open

[Feature Request] Add Click'n'Load 2 support #7

Anuskuss opened this issue Dec 17, 2017 · 17 comments

Comments

@Anuskuss
Copy link

First of all, thanks for your work. To make the experience even better I'm suggesting to add Click'n'Load support. You can already redirect 127.0.0.0:9666 from Windows to your server, the application just has to listen for it 😃

@rix1337
Copy link

rix1337 commented Dec 17, 2017

Already implemented. Use myjdownloader

@Anuskuss
Copy link
Author

Anuskuss commented Dec 17, 2017

Nice, didn't know My JDownloader was capable of that. Guess I'm switching to plusminus/jdownloader-headless though.

Edit: Nevermind, this is actually better than running it completely blind.

@dauhonk
Copy link

dauhonk commented Feb 27, 2018

These settings need to be changed to activate CNL for the docker JDownloader container:

  • JDownloader Settings -> Advanced Settings -> Search "Flashgot" -> uncheck "will listen on localhost only" (restart required)
  • Add port forwarding for CNL to Docker start arguments: “-p 9666:9666”
  • On client side install “Click'n'Load request proxy” add-in and configure Docker host IP (firefox/chrome)

@rix1337
Copy link

rix1337 commented Apr 23, 2018

What I noticed: MyJDownloader would use the local IP of the JDownloader, if it were not running inside docker, when contacted in lan. I cant run the container in host mode (mainly because of VNC), so the internal IP reported to myJDownloader by this will always be the 172.X.X.X variant.

Have you guys found any way to override this with the docker host ip? This would dramatically increase the snappyness of MyJDownloader in the local network (have verified with a native JD2 install).

@jlesage
Copy link
Owner

jlesage commented Apr 24, 2018

I guess you are talking about the MyJDownloader Browser Extension?

@rix1337
Copy link

rix1337 commented Apr 24, 2018

And the mobile app.

Both will try to reach the docker bridge subnet first, the myjdownloader connection second (relayed over WAN). Since the bridge subnet has an IP range unavailable to the LAN, both the extension and app have constant connection issues. They work, but slowly.

Any idea where we can override or spoof the docker host IP "into jdownloader"?

@pokrzys
Copy link

pokrzys commented Sep 9, 2018

What I noticed: MyJDownloader would use the local IP of the JDownloader, if it were not running inside docker, when contacted in lan. I cant run the container in host mode (mainly because of VNC), so the internal IP reported to myJDownloader by this will always be the 172.X.X.X variant.

Thanks for the great find! I also found that standalone install of JD2 is running much better in MyJdownloader than the docker one. Just didn't realize that using host instead of brigde would fix this problem! I've nothing against running it at host network so now my JD2 is running almost as smooth as standard installation.

@rix1337
Copy link

rix1337 commented Sep 9, 2018

How did you get this running in host mode?!

@pokrzys
Copy link

pokrzys commented Sep 9, 2018

I am running it at nas with openmediavault as OS. It has plugin for docker with nice GUI so I just switched from Bridge to Host in that GUI, restarted container and that's all. But I don't use vnc so I don't know if it can couse any problems.

@rix1337
Copy link

rix1337 commented Sep 9, 2018

Ah, I am running Unraid, which has its own Desktop GUI built in.

If I switch to host, the docker container complains, that another x-Server (that of UNRAID) is already running.

Can't use host mode, sadly.

@pokrzys
Copy link

pokrzys commented Sep 9, 2018

Have you tried another jdownloader image? On another machine I'm using plusminus/jdownloader-headless which also works fine. It just doesn't have webpage, being used just through MyJdownloader website. Can't decide which one top use so I use both. It is jd for headless systems and should not have any conflicts with x-server.

@jlesage
Copy link
Owner

jlesage commented Sep 10, 2018

Please try the following steps to get a direct connection. It worked for me.

  • First, add a new port mapping for TCP port 3129 to your container configuration (-p 3129:3129).
  • Open the JDownloader UI.
  • Go to Settings->Advanced Settings.
  • Search for MyJDownloaderSettings.
  • Set Custom Device IPs to the IP address of the host running the container, between double quotes (e.g. "192.168.1.1").
  • Change the Direct Connection Mode to Allow lan/wan connections with manual port forwarding.
  • Restart JDownloader.

@rix1337
Copy link

rix1337 commented Sep 10, 2018

Oh god, this is so much better!!! Thank you @jlesage this is all I ever wanted!

@tristan-k
Copy link

tristan-k commented Apr 17, 2019

Do I still need a MyJDownloader account to communicate between my docker container with jdownloader and my browser running on a different computer? I dont want to share data my data with my.jdownloader.org for privacy reasons.

@dauhonk
Copy link

dauhonk commented Apr 17, 2019

Do I still need a MyJDownloader account to communicate between my docker container with jdownloader and my browser running on a different computer? I dont want to share data my data with my.jdownloader.org for privacy reasons.

No. If the ports below are forwarded to your network and your client computer is on the same network you can directly communicate with jdownloader:
5800/tcp --> WebGUI (your Browser)
5900/tcp --> VNC (e.g. tightVNC Client)
9666/tcp --> CNL (via Browser CNL plugin or SSH tunnel (e.g. PuTTY))

No need for a myjdownloader account

@tristan-k
Copy link

tristan-k commented Apr 17, 2019

Thanks for answering. Can you recommend a click'n'load firefox addon and explain how to configure it? I thought port 3129 is there for direct connection. Also is it possible to redirect and solve captchas with the click'n'load addon?

@zensbert
Copy link

zensbert commented Apr 11, 2020

Dauhonks approch works perfect:

  • JDownloader Settings -> Advanced Settings -> Search "Flashgot" -> uncheck "will listen on localhost only" (restart required)
  • Add port forwarding for CNL to Docker start arguments: “-p 9666:9666”

But i wanted to add:

  • On your "windows client" redirect the local port 9666 to the jdownloader docker image by typing in CMD:
    netsh interface portproxy add v4tov4 9666 IP_OF_DOCKER 9666 127.0.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants