From 9bcbbced59096250af8efbebbca7c87a0c3b6d8d Mon Sep 17 00:00:00 2001 From: Anders Wiberg Olsen Date: Wed, 12 Jan 2022 19:28:27 +0100 Subject: [PATCH] Force IPv4 ping in start-automated-server.bat Ping does not respond with a TTL if the server responds with an IPv6 address. This essentially means that the script will think the user does not have internet, if they have a public IPv6 address. Forcing IPv4 in the ping command, ensures TTL gets returned, and the startup can proceed. Closes #4043 --- automation/start-automated-server.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/start-automated-server.bat b/automation/start-automated-server.bat index dd1b2564d1..057677234a 100644 --- a/automation/start-automated-server.bat +++ b/automation/start-automated-server.bat @@ -420,7 +420,7 @@ IF NOT %MC_SERVER_IGNORE_OFFLINE% EQU 0 ( ) REM Ping minecraftforge before attempting download -%MC_SYS32%\PING.EXE -n 2 -w 1000 minecraftforge.net | %MC_SYS32%\FIND.EXE "TTL=" 1>> "%~dp0logs\serverstart.log" 2>&1 +%MC_SYS32%\PING.EXE -n 2 -w 1000 minecraftforge.net -4 | %MC_SYS32%\FIND.EXE "TTL=" 1>> "%~dp0logs\serverstart.log" 2>&1 IF %ERRORLEVEL% EQU 0 ( ECHO INFO: Ping of "minecraftforge.net" Successfull 1>> "%~dp0logs\serverstart.log" 2>&1 ) ELSE (