|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
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. |
Thread Tools | |
Display Modes | |
|
|