Skip to content
/ mcsv Public

Run Minecraft server on Ubuntu Linux over ZeroTier Network

Notifications You must be signed in to change notification settings

TTlaugh/mcsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server

Run Minecraft as a public server on Ubuntu without public ip or port forward over ZeroTier Network or via mods

Server Requirements

  • Docker
  • Java 21 (JDK)
  • ZeroTier (optional)

HOW IT WORK

I use Google Cloud Shell as a server in this guide

ZeroTier setup

Mods setup

By default, e4mc mod is already added to fabric server, so you don't need to do anything.

Note: you can use either zerotier or mod and you can use both if you like.

Run server

  • Inside mcsv folder, run:
    chmod +x mcsv && ./mcsv -z fabric/1.20.1
  • Then you need to authenticate every time you join a device to a ZeroTier Network if the network you created is private.
  • Finally, follow the console log to get the address of your server, it should look like this:
    ╭─────────────────────────╮
    │ ZeroTier ip: 172.25.0.1 │
    ╰─────────────────────────╯
    
    # .... Some log lines
    
    ╭─────────────────────────────────────────╮
    │ e4mc address: pyramid-news.ap.e4mc.link │
    ╰─────────────────────────────────────────╯

Options

Note: run script without -z flag will only run Minecraft server jar file
Run:
    mcsv [OPTIONS...] PATH
PATH:
    The path of the folder contain server .jar file
OPTION:
    -z      start and join the Server to ZeroTier-Network
    -r      delete existing world and start Server