Jump to content
Sign in to follow this  
James

IPChanger

Recommended Posts

Michel Claveau

Hi!

This code is only for DHCP ; right?

Share this post


Link to post
Share on other sites
testingtest

I don't think it changes your ip right away though

Share this post


Link to post
Share on other sites
testingtest

what language is this? :)

java or vbs...!

Autoit using the command prompt functions. I guess this script is good if your lazy or don't know cmd very well but good job if only it worked faster

Share this post


Link to post
Share on other sites
martin

Hey all,

I have seen many requests for this:

$con = MsgBox(4, "IPChanger", "Do you wish to change your IP?")
If $con = 6 Then
    ShellExecute("cmd", "ipconfig /release", @WindowsDir)
    ShellExecute("cmd", "ipconfig /renew", @WindowsDir)
EndIf

-James

This isn't going to change the ip address is it? Or there's no guarantee that it will. You could get the same address again.

If you want to actually change the ip address then it's likely that you want to change it to a specific address, and then you could use an ip input box and netsh like Cramaboule did.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
Xenobiologist

HI,

this is nearly useless. It will ( even when ) only change the lan IP. If you are connecting to the internet via router and DHCP I do not see any use for it.

Anyway :-)

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.