JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 18.02.2011, 18:07
hippy dave
Guest
 
Posts: n/a
Default get new ip address by reconnecting network service from os x?

hi
i've just started using an hsdpa dongle to connect to the internet. it shows up as a networking service in os x alongside the airport, ethernet etc. so i can use os x's built-in functions to tell it to disconnect, and reconnect, which gives me a new ip address each time.
i've rummaged through jdownloader's reconnection settings, and they mostly seem to be targetted at resetting an external router. are there any settings, or scripts, that would allow me to get jdownloader to disconnect & reconnect the network service from within os x? is this something that would be possible with a script that called an external command, or something?
if any mac people have a suggestion, i'd be grateful to hear it, cheers!
Reply With Quote
  #2  
Old 20.02.2011, 06:01
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default

Just write a script that:
1) Disconnects from the network,
2) sleep 5
3) Connects to the network.

Open the Batch/Script tab in reconnection and enter your Linux shell (such as /usr/bin/ksh) and copy the script into the main window on the page. Change the initial directory to any legal directory (such as your home directory). I do not think environment variable substitution works in the tab, so use absolute paths.

If that does not work, use the External tab with the full command line to start the script.

You might also be able to use DHCP commands to request a new IP instead of the slower process of disconnecting and reconnecting.

Please write back to tell us what worked or if you still have problems.

Note: This has been moved to the Reconnection forum.

Last edited by drbits; 20.02.2011 at 06:06.
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 11:41.
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.