JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 13.07.2010, 12:15
punisher
Guest
 
Posts: n/a
Default Netgear DGN2200 Reconnect Script

See attached - just copy & paste - enjoy
Attached Files
File Type: txt DGN2200_reconnect_script.txt (1.0 KB, 4639 views)
Reply With Quote
  #2  
Old 04.12.2010, 23:06
quidam
Guest
 
Posts: n/a
Default

It doesn't work for me. Anyone has other reconnection script for dgn2200?
Reply With Quote
  #3  
Old 26.12.2010, 15:53
UnofficialSupport
Guest
 
Posts: n/a
Default

quidam, try this one and don't forget to provide jD with correct user, password and router's IP (192.168.0.1 if you didn't change it).


Code:
see the code below

You can try also built-in Reconnect Recorder, but I hope the above code will work.

Regards.

Last edited by UnofficialSupport; 26.12.2010 at 21:45.
Reply With Quote
  #4  
Old 26.12.2010, 16:19
quidam
Guest
 
Posts: n/a
Default

Thanks for the above - it works. I was previously using pretty ugly script form the recorder which took around 1:30-2:00 minutes to reconnect. This one does it in ~50 sec.

I noticed one thing with this script. I have ping requests running in the background and while IP is changed by JD there's no ping for only around 20 seconds but the reconnection process in JD is still running for a while. Is this normal behavior or maybe there's way to even fasten the IP change?

Screenshot:



Thank you, nevertheless. Merry Christmas.

Last edited by quidam; 26.12.2010 at 16:23.
Reply With Quote
  #5  
Old 26.12.2010, 20:29
UnofficialSupport
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by quidam View Post
Thanks for the above - it works. I was previously using pretty ugly script form the recorder which took around 1:30-2:00 minutes to reconnect. This one does it in ~50 sec.

I noticed one thing with this script. I have ping requests running in the background and while IP is changed by JD there's no ping for only around 20 seconds but the reconnection process in JD is still running for a while. Is this normal behavior or maybe there's way to even fasten the IP change?
Yes, the one I posted works within 20 seconds for me. It is something with your jD.

But, never mind, because the reconnect recorder adds a lot of irrelevant commands into script. I removed them and got script that reconnects dgn2200 in 12 seconds. Copy and paste this into reconnect settings:

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        POST /st_poa.cgi HTTP/1.1
        Host: %%%routerip%%%
        Authorization: Basic %%%basicauth%%%


ConMethod=Disconnect
        [[[/REQUEST]]]
    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /st_poa.cgi HTTP/1.1
        Host: %%%routerip%%%
        Authorization: Basic %%%basicauth%%%

ConMethod=++Connect++
        [[[/REQUEST]]]
    [[[/STEP]]]
[[[/HSRC]]]

I don't think you'll get a script that will reconnect your connection any faster using jD commands and 'disconnect/connect' way of reconnection.

But if you still get 50 seconds:
1) restart your jD after adding the code
2) restart your router
3) restart your computer
if still you don't get any better
4) reinstall jD
if still you don't get any better and seriously want this to work as it should
5) restore default dgn2200 settings


Give some feedback on whether it helped.
Reply With Quote
  #6  
Old 26.12.2010, 21:20
quidam
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by UnofficialSupport View Post
4) reinstall jD
Yep, I omitted other steps feeling this could be the issue and in fact - after fresh installation first script you've provided reconnects in 17s, and the second one in 14. Awesome!

Thank you once again!
Reply With Quote
  #7  
Old 28.03.2011, 21:03
galgoog
Guest
 
Posts: n/a
Lightbulb Another way

Hi all, I was trying to make the script working but w/o success, so I configured JD to reconnect using and external batch with a telnet connection.

The router have not the telnet port enabled but we can open it using telnetEnable (google it).

To send commands on telnet, I used TST10 (as before, google it).

To avoid strange connection loss I also added a batch into the scheduled activities in windows.

Here's some code:

Reboot script for tst10 (file reboot.txt). Use the IP of your router!
Quote:
192.168.0.1 23
WAIT "# "
SEND "reboot\m"
WAIT "# "
Reboot batch for JD (file reboot.bat). Replace A1B2C3D4E5 with the MAC address of your router, upper case, no ":" and no "-" (use arp -a to get the MAC and take a look on the documentation provided with telnetEnable itself)
Quote:
telnetEnable 192.168.0.1 A1B2C3D4E5 Gearguy Geardog
TST10 /r:reb.txt
Connection test (I scheduled the batch to check it every 5min). (file test_connection.bat)
Quote:
ping maya.ngi.it
cls
if %errorlevel% == 1 (
call reboot.bat
) else (
echo "The connection is ok..."
)
Hope this will be useful

Paolo

Last edited by galgoog; 28.03.2011 at 21:08.
Reply With Quote
  #8  
Old 29.05.2011, 02:28
buggsy buggsy is offline
BugMeNot Account
 
Join Date: Mar 2009
Location: everywhere/nowhere
Posts: 1,120
Default Both scripts works fast for me!

using it on NETGEAR Router DGN2200v2 (with ADSL).

thanks.
Reply With Quote
  #9  
Old 24.08.2012, 16:23
jc_denton
Guest
 
Posts: n/a
Default

I have a Neatgear N300 DGN2200Bv3 and I have also written a script that can either get IP or Reconnect and get IP, it's a Python 3.2 script that also beeps when IP successfully changes (under Windows platform only).

I attached the file (in a .zip archive) and here is the link to the blog entry (I dump such things as scripts occasionally at an blog) with the script, I don't know if links are only visible to admins/mods:

**External links are only visible to Support Staff****External links are only visible to Support Staff**

The script is invoked by typing:

Code:
n300_dgn2200_reconnect.py --login admin --password YOURPASSWORD --gui-address **External links are only visible to Support Staff**
for IP address and add "--reconnect" if you want to reconnect, like:

Code:
n300_dgn2200_reconnect.py --reconnect --login admin --password YOUPASSWORD --gui-address **External links are only visible to Support Staff**
Some of the arguments can be ommited, as there are defaults, like "--login" defaults to "admin". Or "--gui-address" defaults to "**External links are only visible to Support Staff**.
Attached Files
File Type: zip n300_dgn2200_reconnect.zip (1.9 KB, 908 views)

Last edited by jc_denton; 24.08.2012 at 16:27.
Reply With Quote
  #10  
Old 10.10.2013, 21:12
Befab
Guest
 
Posts: n/a
Default

Hat jemand einen Reconnect script für NETGEAR
NETGEAR N300 Wireless ADSL2+ Modem Router DGN2200Bv4.
Die bisherigen Scripte
laufen nicht, es sei denn, etwas bedarf hierbei besonderer Beachtung.
Befab

+++

Last edited by Befab; 10.10.2013 at 21:43.
Reply With Quote
  #11  
Old 11.09.2014, 19:36
kaapo13
Guest
 
Posts: n/a
Default

For me it worked like this
After downloading Netgeartool telnetenable.exe:
go to command prompt (start-cmd-enter )
type "telnetenable.exe 192.168.239.1 04A151D314B3 Gearguy Geardog"
(you need to use your IP)(then Comes the mac-address, you need to use yours)
go to command prompt (start-cmd-enter )
type Telnet 192.168.239.1 (your IP of course)
type "adsl connection --down" (this disconnect your ADSL Connection)
type "adsl connection --up" (this reconnect your ADSL Connection within 30-90 seconds)
now you have a new IP and you can creat a batch file & combine it with TST10

I have no clue why it take sometimes 30 seconds and sometimes 60 or 90 seconds to be re-connected

Version:
DGN2200Bv4 - Firmwareversion V1.0.0.20_5.0.20

Thanks to all in here - you helped me a lot to get a new IP for 8 WAR-PCs at once.
I'm fighting in social networks for animal rights and you helped me fighting.

Last edited by kaapo13; 11.09.2014 at 19:39.
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:51.
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.