- Source URL:
TShockPing.exe provides a tool to check to see if a TShock server is running and accepting game requests.
The program attempts to connect to the TShock server and also see if a game player can be established. No game is actually started but a response is required from the server to indicate the server is active. Typical ping commands may find the server even when the server is not responding correctly.
The command will return an errorlevel windows value that can be checked. The status returns possible are:
The command could be placed in a batch scheduled command file that periodically checks the status of the server and takes some action if the outcome is not expected.
- Server responding, success = 1
- Server not responding = 2
- No valid response received = 3
- Bad Arguments given = 4
Command line options are:
A command file might look like:
- -ip <address> (required)
- -port <port number> (required)
- -v (prints details of connection and options given and status possibilities)
- -retry <number> (the command will loop <number> times before quitting - optional)
- -sleep <number> (number of seconds to wait between each try. Default is 2. Only use if slow connections or heavily loaded server - optional)
Code:@echo on TShockPing.exe -ip 192.168.0.18 -port 7778 -retry 3 @echo off if errorlevel 1 ( echo Failure Reason Given is %errorlevel% exit /b %errorlevel% )
Any TShock Ping Server Checker 18.104.22.168
Windows tool to check for TShock Server is running