this post was submitted on 06 Mar 2025
111 points (97.4% liked)

Selfhosted

43722 readers
625 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
111
Self-hosting minecraft (downonthestreet.eu)
submitted 4 days ago* (last edited 3 days ago) by Shimitar@downonthestreet.eu to c/selfhosted@lemmy.world
 

Hi! I want to selfhost a minecraft server for my kid and hjs friends. I havent played minecraft in quite a few years ...

Where do I start to self host one?

I am already seflhosting lost of stuff from 'Arrs to Jellyfin and Immich and more, so I am not asking on how to do it technically, but where to look for and what to host for a proper Minecraft server!

Edit: choosed to setup this https://github.com/itzg/docker-minecraft-bedrock-server and so far, super smooth and easy peasy!

top 50 comments
sorted by: hot top controversial new old
[–] pulsewidth@lemmy.world 39 points 3 days ago (2 children)

In addition to other advice here just be aware that Minecraft servers are prime targets for griefing and abuse.

I recommend setting it to whitelist mode and then each kid your friend wants to join just has to send their username to him so you can add the username to the whitelist. Its an added overhead but it's much less painful than reverting to a backup for a griefed server - and your kid won't have to worry about other kids on-sharing the server address.

[–] aarch64@lemm.ee 11 points 3 days ago (2 children)

Easy way to avoid this: choose a different port. I think it's a safe bet the crawlers are just checking 25565. I've had a server up for months with zero issues.

[–] pulsewidth@lemmy.world 2 points 2 days ago (1 children)

It isn't on the default port either, it's on a random high number port which is why I thought it was extra odd they found it.

[–] aarch64@lemm.ee 1 points 2 days ago

Huh, that is funky. Fingers crossed mine survives. I think I'll go and set up some backups, now that I think about it.

[–] Dumbkid@lemmy.dbzer0.com 6 points 3 days ago (1 children)

I've had a server up for almost 9 years never had any randoms even join. Don't think I've ever used the default port tho

[–] pulsewidth@lemmy.world 1 points 2 days ago

It isn't on the default port either, it's on a random high number port which is why I thought it was extra odd they found it.

[–] Korhaka@sopuli.xyz 3 points 3 days ago (3 children)

Its been a long time since I played, wouldn't the best protection from that just be not broadcasting the server to the open internet? Never had an issue with servers that were technically fully open but only telling friends about it. I suppose whitelist is better than security through obscurity though.

[–] yonder@sh.itjust.works 5 points 3 days ago

I had My minecraft server scanned by at least 3 different bots, and I even had some friendly guy join my server that apparently found it using a bot he wrote. I'm now using a whitelist lol. One of the account names that scanned my server was "Fifth Column, which is a griefing group.

[–] Nilz@sopuli.xyz 10 points 3 days ago* (last edited 3 days ago)

I've had a server running without whitelist because a friend hadn't bought the game yet, within 2 weeks it was griefed. It was just the two of us playing.

There are crawler bots just searching for unprotected Minecraft servers and it's just a matter of time before they find yours.

It's a shame the server lacks a pretty basic feature such as password protection.

[–] pulsewidth@lemmy.world 2 points 3 days ago

Like the other commenter said, I dunno how the heck the griefers find the servers - but if it's on the open Internet, they do.

I set up a server for me an a handful of mates - advertised the address nowhere. They told nobody. A month in a friend and I were playing as usual, and a player with a Russian username joined. I'm like "uh hi who are you?". They stayed another minute or two while saying nothing, then left.

I think they left when they realized i had an anti-griefer permissions mod that protects the blocks in an area around the spawn point from being modified (its called 'Flan'). So they joined, saw the server had some protections, and decided it wouldn't be much fun for them.

Whitelist immediately enabled - no more random Russians.

[–] Kruulos@sopuli.xyz 12 points 3 days ago (4 children)

Quick version:

  • Install latest Java
  • Install latest Minecraft Java server
  • Play vanilla Minecraft

Rabbit hole:

  • Bedrock / Java version differences
  • Modpacks, mods and Minecraft version differences (1.12, 1.20) require different Java versions.
  • Official server vs 3rd party software (papermc, purpur...)
  • Publicly open server vs firewalled
load more comments (4 replies)
[–] redxef@feddit.org 30 points 4 days ago (1 children)

It's really only downloading the executable and java, starting it and opening the required port. See the official documentation for instructions.

If you want to get more involved there are some convenient docker containers which automate some stuff:

[–] shea@lemmy.blahaj.zone 4 points 3 days ago

You can actually host a bedrock server yourself with Geyser no problem

[–] friend_of_satan@lemmy.world 21 points 3 days ago* (last edited 3 days ago) (3 children)
[–] Shimitar@downonthestreet.eu 4 points 3 days ago (6 children)

Hi, ended up using your suggestion, super smooth and easy.

load more comments (6 replies)
load more comments (2 replies)
[–] lka1988@sh.itjust.works 14 points 3 days ago (3 children)

Why is everyone suggesting random third party shit?

Straight from Mojang/Microsoft:

Bedrock: https://www.minecraft.net/en-us/download/server/bedrock

Java: https://www.minecraft.net/en-us/download/server

Follow the instructions and go.

[–] Someplaceunknown@fedia.io 22 points 3 days ago (6 children)

Why is everyone suggesting random third party shit?

Cause the official stuff runs like shit

load more comments (6 replies)
[–] non_burglar@lemmy.world 19 points 3 days ago (2 children)

Because paper and others don't run like garbage, unlike vanilla MC.

[–] lka1988@sh.itjust.works 4 points 3 days ago (1 children)

I've had zero issues running vanilla in a basic VM.

[–] non_burglar@lemmy.world 7 points 3 days ago

Try paper or fabric, add Aikar's Flags (https://docs.papermc.io/paper/aikars-flags) and marvel at the high ticks!

[–] Blue_Morpho@lemmy.world 3 points 3 days ago (3 children)

With the current Minecraft monthly updates, paper is always behind on the latest features. There are also minor problems that paper introduces with its performance improvements.

Years ago paper was critical for a good Minecraft experience, but a newer PC (newer than 6 years old) runs great on vanilla.

[–] non_burglar@lemmy.world 8 points 3 days ago

OK, I respect your opinion.

I'm coming from a place of administering a server and I attest to this:

  • Minecraft players want their particular mods on their particular seed, they don't see value in armadillos and whatever other nonsense MS is "releasing".
  • most of my player base has moved on to Vintage Story because Minecraft itself is stagnating like counterstrike did. And now we have the same situation CS had, where there's a huge base of mc players who are stuck on old versions because, let's be honest, Minecraft is stale AF under microsoft.
  • just because modern hardware is better at running vanilla doesn't mean paper won't run even better.
[–] lka1988@sh.itjust.works 5 points 3 days ago

I run 7th gen Intel hardware for my server cluster. Minecraft VMs run totally fine.

[–] josefo@leminal.space 4 points 3 days ago

I ran a server on a raspberry pi 3, paper was the only real option on that kind of hardware.

[–] Asidonhopo@lemmy.world 3 points 3 days ago

Main reason for me is Realms limits the view distance to 16 rather than 32 on Java

[–] RandomVideos@programming.dev 7 points 3 days ago

This is probably not what you are looking for, but if everyone is going to be playing at the same time and they are on java, you can use a mod like World host or e4mc

Also, if someone is using pirated minecraft, you have to set to false online_mode in the server.proprities file on the server(this will also remove skins, but that can be fixed using a plugin/mod if you are using custom software for the server; and will allow anyone to log into anyone elses account, which can be exploited if a player has operator permissions)

[–] dditty@lemm.ee 14 points 4 days ago (1 children)

Just chiming in to include that hosting a modded Minecraft server is relatively easy as well. You use a modded version like Fabric and put the mods in the mods folder in the MC directory on your host. Users have the same mods in their mods folder and it just works normally. Some mods are server-side only

[–] kitnaht@lemmy.world 4 points 3 days ago

Minecraft really needs a mod system like ARK: Survival Ascended. I really hate Forge/Fabric so much because of this requirement that host/server match all their version numbers, but no mechanics to be able to do it within the client.

[–] Xanza@lemm.ee 12 points 3 days ago* (last edited 3 days ago)

https://papermc.io/

Download PaperMC and Java. Run it. Open the port in your FW. Reverse proxy it to a domain. Boom, done.

[–] cecilkorik@lemmy.ca 9 points 3 days ago* (last edited 3 days ago) (4 children)

First you need to understand the difference between Bedrock edition and Java edition. Bedrock is for consoles, phones and Windows, it's the default version that Microsoft pushes now. It's not compatible with Java clients or Java servers. So if you're planning to have the kid play on Switch or something like that, it's not going to work.

Assuming you're clear on all that, you have a few options for Java servers, you can run a plain jane vanilla server (the one that Microsoft provides) fairly easily but it has some limitations, and it's not the most manageable solution. Modded servers are much more capable and flexible but also can be a little more complex in some cases. Overall, I've found Purpur the easiest and most sustainable choice at least a few years ago when I was looking for the right choice it seemed like most people agreed this was the best option. Fabric is another great option, especially if you want to use mods! Fabric has a huge modding ecosystem, second only to Forge.

However I also need to mention that I've got a heavily modded Forge-based server running right now and I really didn't find that any more difficult to set up than any of the others. Even though people usually complain about forge being "difficult" somehow. So take that for what it's worth. I think it doesn't really matter THAT much which server software you use unless you have specific requirements around things like mods, spawn protection, and other kinds of configuration that are probably most useful for large, public servers.

If you do want to run a bedrock server, it gets a little more complicated as you might have to break some things out of the walled garden. I haven't had a lot of success with that but I understand it is possible.

[–] Blue_Morpho@lemmy.world 6 points 3 days ago (1 children)

So if you're planning to have the kid play on Switch or something like that, it's not going to work.

You can run Geyser (a modified Minecraft server) to let bedrock clients play on your Java server.

[–] Mugmoor@lemmy.dbzer0.com 2 points 7 hours ago

Yes but doing it on a Nintendo Switch is cumbersome. It requires you to edit the DNS settings on the console itself. Nintendo doesn't support unofficial multiplayer services.

load more comments (3 replies)
[–] doodledup@lemmy.world 7 points 3 days ago* (last edited 3 days ago) (2 children)

If you're familiar with Docker and want something with UI for easy management of configs, plugins and server console, you might like Pterodactyl Panel, Pelican Panel or Pufferpanel. The easiest one to setup is Pufferpanel. Pterodactyl is more involved but you're flexible to host other game servers too if you want to.

load more comments (2 replies)
[–] mlflexer@lemm.ee 7 points 4 days ago (1 children)

You should only need to have Java and then download the server and open the port if they want to play vanilla mc. If they want modded then idk.

You might also want to check this out, haven’t used it myself but it looks cool if you don’t like wasting server resources: https://github.com/timvisee/lazymc

load more comments (1 replies)
[–] possiblylinux127@lemmy.zip 6 points 3 days ago

You can run it in a container

Just don't expose it to the public internet.

[–] d_k_bo@feddit.org 4 points 4 days ago (1 children)

As others mentioned, running a minecraft server by itself is pretty easy. If you want additional features like a Web UI, multiple servers at the same time etc. you might take a look at Crafty Controller.

[–] lka1988@sh.itjust.works 2 points 1 day ago

That's a solid 3rd party use case. I'm setting it up on my cluster right now.

[–] JASN_DE@feddit.org 4 points 4 days ago (2 children)

Java edition is easy to selfhost, did it as a docker stack a while ago. Apart from that, it really depends on what addons etc. your players are usually playing. Most things can be done with not too much effort, but that's probably the thing you need to find out.

load more comments (2 replies)
[–] rosahaj@lemmy.blahaj.zone 3 points 3 days ago

Minecraft is actually a super easy setup, especially if you're okay with only running it on the local network.

If my memory's alright, this page will have all you need, as well as being the best server software currently out for Minecraft https://purpurmc.org/

load more comments
view more: next ›