JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
Reply
 
Thread Tools Display Modes
  #1  
Old 29.03.2015, 04:36
tuktuk
Guest
 
Posts: n/a
Default Force retrying a socks5 proxy?

Hi,

Is it possible to tell JD2 that it can retry a socks5 proxy again?

For example: If the file/proxy gets into a status of "download limit has been reached", it looks like the proxy is not (immediately?) retried even if the external/outbound IP of the proxy has changed.

For now, when I want to force JD2 to retry, what I do is change the port # of the proxy, and then add a new entry for it in JD2.

I was hoping there's something like a simple way to just force JD2 to retry the current one.

Thanks!
Reply With Quote
  #2  
Old 29.03.2015, 05:23
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

what happens if you add a series of entries to connection manager, with different ports?

I believe JD will do a IP check to confirm each entry's outward bound IP

raztoki
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 29.03.2015, 06:31
tuktuk
Guest
 
Posts: n/a
Default

Hi,

Yes, that's kind of what I'm currently doing: I change the port # on the proxy server, then I add a new entry in the Connection Manager with the new port to make JD2 think I have a new proxy server. It immediately retries when I do that.
Reply With Quote
  #4  
Old 29.03.2015, 07:31
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

are you inferring that the WAN IP on the proxy is actually the same?
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 29.03.2015, 07:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Is the proxy your only Connection in Connection Manager. There is no proper "reconnect" detection for proxies yet, because normally proxies don't change their outgoing ip's
Can you provide more information about the setup?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 29.03.2015, 14:20
tuktuk
Guest
 
Posts: n/a
Default

raztoki:

The proxy's WAN IP changes (I can force it to change), and is different from my usual WAN IP.


Jiaz:

I use "no proxy" and socks5 proxy. The socks5 proxy is basically just a computer/VM running a simple socks5 proxy called 3proxy. The WAN IP for the "no proxy" and proxy are different. The "no proxy" doesn't change WAN IP, but the proxy does.

Screenshot of JD2's Connection Manager and gateway status... The multiple 192.168.27.138 with different ports are my attempts to force a retry.


The retry doesn't have to be automatic. I would be happy with something like a right-click "retry this proxy" in Connection Manager.


Thanks guys!
Attached Images
File Type: png jd2proxy.png (27.9 KB, 54 views)
File Type: png jd2proxy2.png (18.8 KB, 42 views)
Reply With Quote
  #7  
Old 29.03.2015, 15:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Why not simply enable all of them and Let JDownloader handle it. Then it does not reconnect but i can use the different outgoing ip's at the same time, till all have reached their waiting time limits.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 29.03.2015, 19:31
tuktuk
Guest
 
Posts: n/a
Default

Sorry, maybe I'm reading your reply incorrectly... I actually only have 1 proxy with 1 extra WAN IP address (randomly assigned).

I guess I could just leave entries with many different ports enabled in JD2, and just change the port in the proxy. It just seems wrong to have all of it probing and waiting at nothing in the background.
Reply With Quote
  #9  
Old 30.03.2015, 10:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

So why add it several times in JDownloader? Just simply add the proxy once and wait till this feature is implemented

Will try to fix it as soon as possible
__________________
JD-Dev & Server-Admin
Reply With Quote
  #10  
Old 31.03.2015, 18:37
Llamatron
Guest
 
Posts: n/a
Default

I'm doing exactly the same thing as tuktuk, but I'm using tinyproxy as an HTTP proxy. (in stealth mode, tinyproxy config option to not add proxy headers.) Does SOCKS work better for JD2 than an HTTP proxy? I prob. got the config wrong with my SOCKS proxy, because I tried that first without success.

I had to enable settings -> advanced -> use proxy for IP check, or else it will use direct for checking the IP of both connections. (When is that ever useful? HTTP proxies don't add a header to tell the server the original IP of the request, do they? If the server is going to check things based on the proxy's IP, JD2 needs to do IP checks through the connection that it's checking. I think JD2 still uses Direct for checking the IP of my Direct connection, so it's not like that option forces all IP checks to avoid the direct connection.)

(See https://board.jdownloader.org/showth...230#post329230 for more about the poor IP checking.)

When I get a new IP on my proxy (which I do manually), I've usually clicked "reset" on a link to get JD2 to try it again. At that point, it usually notices the IP of the proxy connection has changed, since it does an http request to ipcheck<number>.jdownloader.org.

I tried using reconnect once, with method = script, and the script body
Code:
true  # unix command that just exits right away, with a successful exit status
That was before I found the ip check via proxy option, so it didn't even notice the changed IP. Even worse, it aborted running downloads on the direct connection. (Is it helpful on some routers to close TCP connections before asking it to get a new IP? As a workaround for buggy routers that leak memory or get their connection table clogged up? Or do some hosters treat a closed connection differently from a timed-out connection?) Anyway, that was annoying.

I think the nicest way to implement external reconnects would be to add a new reconnect method "External". Clicking reconnect would just trigger an IP check on all available connections. Either disallow the user from enabling auto-reconnects with external, or warn the user that it requires manual intervention, and pop up a dialog to tell them that JD2 is ready for a reconnect.

It would be more tricky to allow the "don't start new downloads when one is waiting for a reconnect" to operate per-connection, right? From the behaviour of the GUI, I have the impression that not all of JD2 as designed for octopus-mode controlling multiple IPs. (e.g. reconnect waittime for one connection doesn't always show if the other is downloading.)

Last edited by Llamatron; 01.04.2015 at 00:25.
Reply With Quote
  #11  
Old 02.04.2015, 09:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Socks5 always work better because a socks proxy is "dumb" It simply opens a TCP tunnel while HTTP Proxies forward/parses/interacts on traffic. HTTP Proxies also often only allow opening port 443 for tcp forward.

The current reconnect is implemented to reconnect the direct connection because normally you cannot reconnect proxies This is all on todo list to have individual reconnect/ipcheck for each connection.

A reconnect in JDownloader stops all ongoing downloads.

__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 15.01.2023, 12:47
yelador yelador is offline
JD Adviser
 
Join Date: Sep 2009
Posts: 102
Default

It seems that it still does not work. After changing the IP in the proxy service, the IP is not recognized by JDownloader.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:24.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.