Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to make this batch program run every 30 seconds... it will renew my ip every 30 seconds.
@ECHO OFF ipconfig /release ipconfig /renew ECHO LAN IP REPAIRED. PAUSE CLS EXIT

@ECHO OFF
:RENEW
cls
ipconfig /release
ipconfig /renew
sleep 30
goto RENEW
sleep.exe is a res kit tool:
http://www.microsoft.com/downloads/...Cheers
Alastair

Could you use
ping -n 13 -w 1000 1.1.1.1 >nul
instead for a 30 second pause? This way you don't need to download anything.Try this:
@echo off
:RENEW
cls
ipconfig /release
ipconfig /renew
ping -n 13 -w 1000 1.1.1.1 >nul
goto :RENEW

@alkjones
Thanks a lot.... its working :)@lee123abc
Your program is also working :) could you please tell me what does this line do?? "ping -n 13 -w 1000 1.1.1.1 >nul"

Maybe you should look at fixing whatever problem you're experiencing that makes you think that you need to release/renew your IP every 30 seconds. This type of "solution" to a problem is absurd.

Actually there is no problem in my internet connection... I am bruteforcing a web server and it banning my ip in every 30-40 seconds so i needed that batch program...

To problems with this approach spring to mind. Are you behind a router? In which case all you are renewing is your private address which will make no difference to anyone that is banning your IP as it does nothing for your public IP address.
If you are connected directly to your ISP via a modem and are in fact renewing your public IP address, your ISP is going to notice eventually and you will get banned again. An ISP ban tends to be terminal.
Stuart

ping -n XXXXX -w 1000 1.1.1.1 >nul
That just pings an address that takes a while to do. Just substitute XXXXX with some random integers to test it!
Try changing XXXXX to 2 and see how long it takes!!

@StuartS
Why will my isp ban me ?? I am just renewing my ip address.@lee123abc
Changed the value to 2 . It takes much less time now... thanks a lot :)

>> Why will my isp ban me ?? I am just renewing my ip address. <<
Becasue you will be putting a strain in his DHCP servers. IP addresses aren't meant to be renewed every thirty seconds. ISPs keep track of what IP address was allocated to which customer so in the event of any complaints they can track who was doing what and when. With an IP address that changes every thirty seconds it makes that job near impossible. Your activity log will be enormous compared to everyone else's.
Stuart

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |