Minecraft’s Bedrock Edition now supports self-run dedicated servers
Minecraft’s old, outdated (but still more featured) Java version still exists, but it’s largely being supplanted by the Bedrock edition of the game. that version is getting a little better now, because it supports dedicated servers, that you can run at home.