> For the complete documentation index, see [llms.txt](https://lodestone-technologies.gitbook.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodestone-technologies.gitbook.io/knowledgebase/minecraft-java/using-minehut-external.md).

# Using Minehut external

By connecting your server to Minehut, you become part of their network. This allows you to advertise in their lobby, use their DDoS protection, and more. We fully support connecting to Minehut external.

{% hint style="warning" %}
We recommend only using an external Minehut proxy if you know what you're doing.&#x20;
{% endhint %}

## Changing your startup flags

Before players can connect to your server through Minehut you will need to set up your server to use Minehut’s authentication service.&#x20;

{% hint style="info" %}
To prevent misuse, you won't be able to change your startup flags yourself. You'll need to [open a ticket](/knowledgebase/account-and-billing/open-a-support-ticket.md) and request for your flags to be changed.
{% endhint %}

If you're using Velcoity, in the `velocity.toml` file, set `haproxy-protocol` to `true`.&#x20;

You can then add the following CLI flag to your start script:

```
-Dmojang.sessionserver=https://api.minehut.com/mitm/proxy/session/minecraft/hasJoined
```

If you're using Paper, in the `server.properties` file, set `enforce-secure-profile` to `false`.

You can then add the following CLI flag to your start script:

```
-Dminecraft.api.auth.host=https://authserver.mojang.com/ -Dminecraft.api.account.host=https://api.mojang.com/ -Dminecraft.api.services.host=https://api.minecraftservices.com/ -Dminecraft.api.session.host=https://api.minehut.com/mitm/proxy
```

## Connecting a Minehut server

Go to [Minehut](https://minehut.com/) and create an account. You’ll use this account to manage your server. Create a new plan, or use an existing one, and set it to be external.

On Minehut, open your server’s server panel and navigate to the "External Server Settings" section.

<figure><img src="/files/r9zRvMv9KW0A6cfAHrxr" alt=""><figcaption></figcaption></figure>

Complete the following fields:

```
IP: <the IP or domain of your external server>
Proxy Type: Velocity / Other
DNS Record Type: Port / SRV
Port: <the port of your external server>
TCP Shield: Not Configured
```

Save your changes, then restart both servers.

## Other settings

We recommend reading the [official Minehut guide](https://support.minehut.com/hc/en-us/articles/33252734474899-How-to-Setup-a-Minehut-External-Hosted-Server) for information on how to use other settings. These include using resource packs and setting up custom appearances.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://lodestone-technologies.gitbook.io/knowledgebase/minecraft-java/using-minehut-external.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.
