Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft RCON issue #1249

Open
jtherin opened this issue Dec 28, 2024 · 0 comments
Open

Minecraft RCON issue #1249

jtherin opened this issue Dec 28, 2024 · 0 comments

Comments

@jtherin
Copy link

jtherin commented Dec 28, 2024

The minecraft app configuration is not optimal on rcon part:

  • RCON password is mandatory for truenas, but it can be kept auto generated by itzg/docker-minecraft-server (never had to set this parameter on non-truenas servers)
  • Also, the truenas app expose the rcon port publicly, but it's not recommended.

RCON is **enabled by default** to allow for graceful shut down the server and coordination of save state during backups. RCON can be disabled by setting `ENABLE_RCON` to "false".

!!! warning

    Disabling RCON will remove and limit some features, such as interactive and color console support.

The default password is randomly generated on each startup; however, a specific one can be set with `RCON_PASSWORD`.

**DO NOT MAP THE RCON PORT EXTERNALLY** unless you are aware of all the consequences and have set a **secure password** with `RCON_PASSWORD`. 

!!! info 

    Mapping ports (`-p` command line or `ports` in compose) outside the container and docker networking needs to be a purposeful choice. Most production Docker deployments do not need any of the Minecraft ports mapped externally from the server itself.

By default, the server listens for RCON on port 25575 within the container. It can be changed with `RCON_PORT` but only do this if you have a very good reason. **DO NOT change `rcon.port` via `server.properties`** or integrations will break.

https://github.com/itzg/docker-minecraft-server/blob/master/docs/configuration/server-properties.md?plain=1#L209C1-L226C1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant