Server crashes when specifying IPv6 listen address

DerEnderKeks shared this bug 35 days ago
Not a Bug

I just tried to launch the Space Engineers server with an IPv6 listen address ("::"), but it just crashes with the following output in the console:


System.IO.IOException: The process cannot access the file 'C:\Users\xxx\AppData\Roaming\SpaceEngineersDedicated\SpaceEngineersDSGUI_20240521_201144129.log' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Sandbox.MyErrorReporter.TrySendReport(String logName, String gameId, String email, String feedback, CrashInfo info, String reportType, IEnumerable`1 files)
2024-05-21 20:15:50.626: App Version: 01_204_017
2024-05-21 20:15:50.638: Is official: True [NO][IS][NAMP]
2024-05-21 20:15:50.638: Client Build Number: 0
2024-05-21 20:15:50.638: Server Build Number: 0
2024-05-21 20:15:50.639: Environment.ProcessorCount: 16
2024-05-21 20:15:50.656: Environment.OSVersion: Microsoft Windows 11 Pro (Microsoft Windows NT 6.2.9200.0)
2024-05-21 20:15:50.656: Environment.CommandLine: "G:\Steam\steamapps\common\SpaceEngineersDedicatedServer\DedicatedServer64\SpaceEngineersDedicated.exe" -noconsole -checkAlive
2024-05-21 20:15:50.656: Environment.Is64BitProcess: True
2024-05-21 20:15:50.656: Environment.Is64BitOperatingSystem: True
2024-05-21 20:15:50.656: Environment.Version: .NET Framework 4.8.9232.0
2024-05-21 20:15:50.656: Environment.CurrentDirectory: G:\Steam\steamapps\common\SpaceEngineersDedicatedServer\DedicatedServer64
2024-05-21 20:15:50.656: CPU Info: AMD Ryzen 7 3700X 8-Core Processor             
2024-05-21 20:15:52.222: Bind IP : [::]:27016
Server was stopped.System.IO.IOException: The process cannot access the file 'C:\Users\xxx\AppData\Roaming\SpaceEngineersDedicated\SpaceEngineersDSGUI_20240521_201144129.log' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Sandbox.MyErrorReporter.TrySendReport(String logName, String gameId, String email, String feedback, CrashInfo info, String reportType, IEnumerable`1 files)


Changing the address back to the unspecified IPv4 address ("0.0.0.0") allows the server to start. The message regarding the log file also only happens when trying to start with the IPv6 address.


Additionally, trying to connect to an IPv6 address ("[::1]:27016") with the game results in the Error "An error occurred when parsing the provided IP address or hostname. Check the log for more details.", where the log contains the following:

2024-05-21 20:22:41.497 - Thread:   1 ->  Exception occurred: System.Net.Sockets.SocketException (0x80004005): The attempted operation is not supported for the type of object referenced
   at System.Net.IPAddress.get_Address()
   at VRage.Steam.MySteamServerDiscovery.PingServer(String connectionString)
   at Sandbox.Game.Screens.MyGuiScreenServerConnect.ParseIPAndConnect()


Does this game seriously not support IPv6 in 2024? :P

Replies (2)

photo
0

Hello!

Thank you for contacting us. Since this is a bug report, I'm moving your ticket to our support page, where our QA team will take care of you.

Kind Regards

Keen Software House

photo
1

Hello, engineer!

Thank you for writing to us.

We always recommend our players to avoid changing the listen IP field from its default value. Modifying this setting can result in unwanted behavior, such as the issues you have experienced. Therefore, we suggest using the default values.

If you still wish to make changes to the IP settings, we advise consulting Steam Support. There have been reports that Steam has limitations with IPv6, which can affect games that use Steam for networking. While IPv4 works reliably, the transition to IPv6 isn't fully supported by the games due to these limitations.

Since the issue you reported doesn't seem to be a bug, we will be closing this thread for now. However, if you encounter any other issues, please feel free to open a new thread.

Thank you for your understanding.

Kind Regards,

Keen Software House: QA Department

Leave a Comment
 
Attach a file