Update IW4MAdmin IPAddress Key
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
492 B

:: Make this file a task schedule for 1 am or something.
@echo off
:: Grab my Public IP. Throw it in Documents\IP.txt.
C:\curl-7.69.1-win64-mingw\bin\curl.exe https://ip.chasehall.net/pub.php > %USERPROFILE%\Documents\IP.txt
:: Kill IW4MAdmin
taskkill /F /FI "WindowTitle eq IW4MAdmin" /T
:: Replace IW4MAdminSettings.json with our new IP.
python Update-Public-IP.py
:: Start IW4MAdmin Again
cd IW4MAdmin
set DOTNET_CLI_TELEMETRY_OPTOUT=1
echo y | dotnet Lib\IW4MAdmin.dll