DIGIT-ARC read-only archive · snapshot: July 23, 2026

Renew IP address ...... making a bat file

15 posts · originally from https://geek.digit.in/community/threads/renew-ip-address-making-a-bat-file.47071/

R
rahul_becks23 Original post #1
Jan 21, 2007 at 9: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
Jan 21, 2007 at 10:17 PM
Here u go .. just rename the file to .bat
Lucky_star
Jan 21, 2007 at 10:22 PM
rahul_becks23 said:
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:)
R
rahul_becks23 #4
Jan 21, 2007 at 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
Jan 21, 2007 at 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.
R
rahul_becks23 #6
Jan 21, 2007 at 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
Jan 21, 2007 at 11:49 PM
rahul_becks23 said:
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
Jan 22, 2007 at 12:16 AM
premsharma said:
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
R
rahul_becks23 #9
Jan 22, 2007 at 8:13 PM
of-course .......... whats to lol in this dummyhead .....
sounik
sounik #10
Jan 22, 2007 at 9:35 PM
try dis...
ipconfig /release *con*
ipconfig /renew
exit

it works wit my router....
R
rahul_becks23 #11
Jan 22, 2007 at 9:51 PM
whats with -con- ............. dante
Lucky_star
Jan 22, 2007 at 11:23 PM
^^ Its the name of the connection.
C
Jan 23, 2007 at 7:00 AM
i use rasdial to disconnect and reconnect
works for me with rapidshare (browser opera with cookies disabled)
sounik
sounik #14
Jan 23, 2007 at 9: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
R
rahul_becks23 #15
Jan 23, 2007 at 11:18 PM
well , which conn . , ihave a LAN conn. and a bsnl dialup conn. ......n both need to be active .
and whats rasdial ..........??