Error code 5 is a null pointer error that occurs when running the ProjectZomboidServer.bat file. This can be fixed by deleting the erosion.ini file, which is located in the %username%\zomboid\multiplayer\servertest folder.
Error code 5 is an issue with a user’s connection not reaching the server. This can be caused by a variety of factors, including firewall settings, internet connection, and server settings. To fix this issue, users can try deleting the character folder associated with the server, or backing up the character folder and placing it in a safe location.
When trying to launch a dedicated server for a game, error code 5 means that the port necessary for the game is already in use. Restarting the PC should clear out the port and fix the error. If the error persists, it may be necessary to try starting a new server on a different port.