# Troubleshooting

### Failed to initialize Nethost

Install [.NET 8.0 Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.13-windows-x64-installer)<br>

### Server console instantly closes

* Install [Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe)
* Install [.NET 8.0 Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.13-windows-x64-installer)

### Others can't connect to my server

* Ensure `Server.Loader.exe` is still running (it must be running for anyone to connect)
* Allow `Server.Loader.exe` through your firewall
* If you are port-forwarding:
  * Check the port you forwarded, it must match what "Port" in config.json is set to (default is 11778)
  * Try changing the protocol to only UDP
* If you are on a LAN or using a virtual network software (Hamachi, Radmin VPN, ZeroTier, etc):
  * The IP  attempting to be used should start with either 10, 172, or 192.168\
    ex. 192.168.1.15
  * Make sure you are attempting to connect to the correct IP, the host's

### System.IO.DirectoryNotFoundException

Double check that there is a `Mods`folder in the `Server`folder.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hogwarp.com/hogwarp/server/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
