
Select Add Server in the bottom-right corner.ģ. Launch Minecraft while your server is open and running, and select Multiplayer.Ģ. In the meantime, however, here's how you can start exploring your new server.ġ. Once you've set it up, give your friends your IP address, and they'll be able to join. There's a few different ways to set up port forwarding, and instructions you'll need specific to your router can be found here. You'll have to set up port forwarding to open up your Minecraft server to users outside your local network. However, right now your server is only accessible to devices using the same internet connection as you. Technically, your server is ready to fire up now, and you'll also see a few new files in your server folder, including the "server.properties" file where you can customize your game. Click File, then "Save As…" and where you can select "Save as type" from a drop-down menu, select "All Files (*.*) and name the file "start.bat."īe patient, as depending on your computer, creating your server may take several minutes. As such, set the RAM amount in multiples of 1,024 megabytes.ġ0. Quick tip: Unlike with storage space, when it comes to RAM, one gigabyte equals 1,024 megabytes – not 1,000. Java -Xmx2048M -Xms2048M -jar server.jar nogui By default, it's set to 1024MB of RAM, or one gigabyte (GB).Ī five or more player server should have at least 2GB of RAM allocated, for example, which you can set by changing the code to: The RAM is determined by the first two numbers in the line of code, which are amounts of RAM in megabytes (MB).

The more RAM you give it, the smoother your server can run, but the more stress it'll put on the computer.ĩ. You can also change the RAM allocation for your server in this line of code. Java -Xmx1024M -Xms1024M -jar server.jar noguiĨ. Within the string of command text, you'll see the words "minecraft_server.1.18.2.jar." You'll need to rename that portion of the text "server.jar." That means that the new line of code will now read: Paste the string of command text into your start.txt document.ħ. Paste the string of command text into your start.txt document.Ħ.
