Ganti IP Otomatis

Salah satu batch file favorit, batch u/ ganti ip otomatis (Windows).

Tinggal setting dikit, lalu double-click 🙂


@ECHO OFF
rem Batch u/ ganti IP otomatis

set varip=
set varsm=255.255.255.0
set vargw=
set vardns1=
set vardns2=
set varhome=google.com

REM For the most up-to-date-info, visit http://samanathon.com/set-your-ip-address-via-batch-file/

REM ***** You don’t need to change anything below this line! ******

ECHO This fanciness is brought to you by Saman Sadeghi!

ECHO Setting IP Address and Subnet Mask
netsh int ip set address name = "Local Area Connection" source = static addr = %varip% mask = %varsm%

ECHO Setting Gateway
netsh int ip set address name = "Local Area Connection" gateway = %vargw% gwmetric = 1

ECHO Setting Primary DNS
netsh int ip set dns name = "Local Area Connection" source = static addr = %vardns1%

ECHO Setting Secondary DNS
netsh int ip add dns name = "Local Area Connection" addr = %vardns2%

ECHO Setting Internet Explorer Homepage to %varhome%
reg add "hkcu\software\microsoft\internet explorer\main" /v "Start Page" /d "%varhome%" /f

rem ECHO Here are the new settings for %computername%:
rem netsh int ip show config

pause

One Response

  1. BorneoBoyis Says:

    ta coba bentr y… ^^

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.