Starting the server won't work on Windows if you have a public IPv6 address.
The script makes a ping to minecraftforge.net and tries to look for TTL in the response. Apparently, if the server returns an IPv6 address, the TTL is not included:
As I personally have a public IPv6 address, the server responds with IPv6 as well, causing the script to think, that I don't have internet.
The bash script uses the return code of the ping command instead of asserting on the output, so the issue only shows up on Windows.
Starting the server won't work on Windows if you have a public IPv6 address.
The script makes a
ping
tominecraftforge.net
and tries to look forTTL
in the response. Apparently, if the server returns an IPv6 address, theTTL
is not included:As I personally have a public IPv6 address, the server responds with IPv6 as well, causing the script to think, that I don't have internet.
The bash script uses the return code of the ping command instead of asserting on the output, so the issue only shows up on Windows.