Sorry po sa late reply, ngayon lang nabakante.
Optional lang kung marami kang abubot sa script mo. a simple pinger will do. Eto bat file for pinger, ikaw na yung maglagay ng host/ip mo. Pang-monitor lang at stabilizer (w/flusher) din.
Code:
:: Batch Script
:: color Ping
echo off & cls
set /p IP=Enter your IP Address :
:top
PING -n 1 %IP% | FIND "TTL="
IF ERRORLEVEL 1 (SET OUT=4F & echo Request timed out.) ELSE (SET OUT=2F)
color %OUT%
ping -n 2 -l 10 127.0.0.1 >nul
GoTo top
Ito naman yung pinger-flusher with google host.
Code:
:: Batch Script
:: color Ping
mode 54, 15
echo off & cls
cd \
ipconfig/flushdns
ipconfig/registerdns
:top
PING -n 1 www.google.com | FIND "TTL="
IF ERRORLEVEL 1 (SET OUT=4F & echo Request timed out.) ELSE (SET OUT=2F)
color %OUT%
ping -n 2 -l 10 127.0.0.1 >nul
GoTo top
Since nagtanong ka na, lubusin ko na rin bosing at baka makatulong. Doon sa previous problem, kung makita mo sa Network Sharing Center na yung vpn client adapter ay may internet connection at wala kang ping at browse while SE is connected, malamang mahina lang talaga bato sa'yo - ganyan din sa'king 3G connection. Intay ka nalang ng good timing! doon sa sinabi ko noong nakaraan, ibang case yon. Banggitin ko na lang yung iba pa...
Sa mga errors/corrections as client, I'll just mention the common; the rest is up to you to find your solution:
If you get error code 13 "Time-out occurred during VPN session communication", it means you're disconnected, so it will reconnect as set by default.
If you get error code 1 "Connection to the server failed" or error code 2 "Protocol error occurred", do any of the the following before reconnecting and see which one works:
1. ip release, ip renew ... dns flush via command line: ipconfig /release + ipconfig /renew + ipconfig /flushdns + ipconfig /registerdns . Or look for Istabilizer by Lawliet on this page. Use it with SE VPN - running on background.
https://phcorner.org/threads/514406/page-17
2. disable and enable your (wireless, local...) adapter connection sa network connection page - yun gamit ninyo!
3. restart modem or phone
4. If you have a legit connection, do the Captain Underpants one-click method. Connect SE to your legit/direct connection; when verified connected, switch to your no load connection. Error 13 will appear and the rest is history he he.
If you get error 131 "Several VPN Servers on the same IP address", it could be due to a server setup error. You can try first to connect to another trusted server before following the next step. If still unsuccessful, mag-load kayo muna ng +6 pesos, then try your luck again. Sabi ng iba...baka raw walang load he he.
Maaaring may iba pang paraan to resolve errors but this is just enough for a start.