View Full Version : Renew IP address ...... making a bat file
rahul_becks23
21-01-2007, 09:58 PM
Well , can someone help me making a file that does this in cmd--
ipconfig /flushdns
ipconfig /release
ipconfig /renew
exit
Well , i dont want to write this again n again in cmd , so can someone plz. make a file of it .
Thanks.
hemant_mathur
21-01-2007, 10:17 PM
Here u go .. just rename the file to .bat
Lucky_star
21-01-2007, 10:22 PM
Well , can someone help me making a file that does this in cmd--
ipconfig /flushdns
ipconfig /release
ipconfig /renew
exit
Well , i dont want to write this again n again in cmd , so can someone plz. make a file of it .
Thanks.
You have answered yourself. Just fire up the notepad and type what you have written here, and save it as abcd.bat. You can use any name but the extension should be .bat. Run it and you are done! Simple:)
rahul_becks23
21-01-2007, 10:23 PM
i had already tried that but it didnt seem to be work.
Well , my ip renews itself when i reconnect to my dialup but its not happening with the bat way , can u help me here.
Lucky_star
21-01-2007, 10:40 PM
Its a rare case that each time you click release and renew, you will get a new address. It depends on the the Server. This generally occurs during the daytime when the service provider is busy and a lot of users are switching
on and off. In this case renewing may give you a new ip address. But in the night when the server is not that busy, clicking on renew will only give you the same address.
See if your modem supports both LAN and USB. In that case, if you disable LAN and connect using USB, you will surely get a new ip address.
Another way to get a new ip address is to boot into another operating system, Say from XP to 98 or vice versa.
rahul_becks23
21-01-2007, 10:59 PM
but my ip addresss renews when i disconnect and connect again ...... i dont need to restart my modem or computer .............but it dosent happen with a bat file. I dont know whats wrong .
premsharma
21-01-2007, 11:49 PM
i had already tried that but it didnt seem to be work.
Well , my ip renews itself when i reconnect to my dialup but its not happening with the bat way , can u help me here.
You need to disconnect before trying out this IP flushing bat and then reconnect after it compltes flushing. You need it for RS??? Right
Lucky_star
22-01-2007, 12:16 AM
You need to disconnect before trying out this IP flushing bat and then reconnect after it compltes flushing. You need it for RS??? Right
LOL:D
rahul_becks23
22-01-2007, 08:13 PM
of-course .......... whats to lol in this dummyhead .....
sounik
22-01-2007, 09:35 PM
try dis...
ipconfig /release *con*
ipconfig /renew
exit
it works wit my router....
rahul_becks23
22-01-2007, 09:51 PM
whats with -con- ............. dante
Lucky_star
22-01-2007, 11:23 PM
^^ Its the name of the connection.
contactram
23-01-2007, 07:00 AM
i use rasdial to disconnect and reconnect
works for me with rapidshare (browser opera with cookies disabled)
sounik
23-01-2007, 09:20 AM
like Lucky_star said it is d name of d connection.. d command will release ip of all active connections... so if u are on networkin dont use it instead use the specific connection name..
if d commands u hav stated first works then make individual batch files of dem and rund them in order
rahul_becks23
23-01-2007, 11:18 PM
well , which conn . , ihave a LAN conn. and a bsnl dialup conn. ......n both need to be active .
and whats rasdial ..........??
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.