AllTheMods / Server-Scripts

Server Startup Scripts
Other
68 stars 37 forks source link

ServerStart.bat doesn't support IPv6 #88

Open algorythm opened 2 years ago

algorythm commented 2 years ago

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:

image

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.