@echo off


color A

title Auto IP


:simulan



cls

rasdial "Globypass" /PHONE:*99#
ipconfig | find /c "10.11."
if errorlevel==1 goto next
if errorlevel==0 goto end

:next

ipconfig | find /c "10.11."
if errorlevel==1 goto next2
if errorlevel==0 goto end

:next2

ipconfig | find /c "10.11."
if errorlevel==1 goto next3
if errorlevel==0 goto end

:next3

ipconfig | find /c "10.11."
if errorlevel==1 goto recon
if errorlevel==0 goto end

:recon

cls

echo Maling IP! searching for 10.11 :) - kunek natin ulet.....
rasdial "Globypass" /disconnect
goto simulan

:end

cls

echo nakuha na IP na pinapahanap mo!!!Enjoy po ^_^

pause 