DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Batch Code To Dynamically Change Your IP

11.04.2010
| 2797 views |
  • submit to reddit
        // A code that changes your IP every x seconds. Extremely Useful.

@echo off
title IP Refresher
color 0a
set /P timewait=How long should I wait between refreshes (in seconds)?
:DOLOOP
ipconfig -release
ipconfig -renew
ping -n %timewait%+1 127.0.0.1 >NUL
GOTO DOLOOP