James Liang/Minecraft Server

Created Sat, 20 Mar 2021 23:05:27 -0500 Modified Wed, 27 Oct 2021 00:48:31 +0000
434 Words

Setting up your configuration

First download the Java Edition Server from Minecraft.net

Place the jar file into a folder which you want to have all of your config files in.

You then want to create a start.txt file in that folder with the contents below:

java -Xmx1024M -Xms1024M -jar server.jar nogui
pause

If you want to change the amount of memory the server uses, change the 1024 to the desired memory. Be sure to keep both the number values the same. Save the text file as a .bat file. You can now delete the start.txt file.

Double click the .bat file, it should fail to start as you haven’t accepted the EULA yet. Press a key to close the command prompt.

In the folder, open the eula.txt and change eula=false to eula=true.

You can open the .bat file again, your server should be up now. If you want to stop the server, type stop into the command line.

All you need to do to connect to your server is type in your server’s IP address when connecting.

Using a Custom Domain

If you want to add a custom domain to your Minecraft server follow the steps below. I’m using Cloudflare so set up may vary depending on who your provider is. Replace the values in brackets with the indicated values.

Port forward port 25565 to your Minecraft server’s local IP address.

Please note that if you are on the same network as your server, you should connect using your server’s local IP address. If you try to connect with your public IP address or domain you won’t be able to connect. To get around this you may want to use a VPN.

If you want your server to be the root of your domain (liang.one):

Create an A record with the values:

Type: A
Name: @
IPv4 address: (Your public IP address)
TTL: Auto
Proxy status: DNS only

Create a SRV record with the values:

Type: SRV
Service: _minecraft
Protocol: TCP
Name: @
TTL: Auto
Priority: 0
Weight: 0
Port: 25565
Target: @

If you want your server to use a subdomain (subdomain.liang.one):

Create an A record with the values:

Type: A
Name: (subdomain)
IPv4 address: (Your public IP address)
TTL: Auto
Proxy Status: DNS only

Create a SRV record with the values:

Type: SRV
Service: _minecraft
Protocol: TCP
Name: (subdomain)
TTL: Auto
Priority: 0
Weight: 0
Port 25565
Target: (subdomain.liang.one)