My friends and I play Unturned and everyday someone else hosts the server. I would like to make a batch file that checks if the server is already running on someone else's PC. We sync our server files using Dropbox. This means files could get corrupted if multiple people started the server at the same time.
Program structure:
@echo off
// Check if the server is already hosted elsewhere
if already_hosted
echo Server is already hosted on {IP}.
else
start server.exe