Set Up Minecraft Server Java

Start A Free Minecraft Server With Aternos

How to Set Up A Minecraft Server on Your Home Network Java Edition

Aternos is another free platform that offers private Minecraft servers to players. Just like Minehut, setting up a server with Aternos is a breeze. All you have to do is create a free account, add a server, and configure it up to your liking.

To get started, first visit aternos.org. Then click on the Play button located in the bottom-right corner.

Here, you can sign up for a free account or log in to an existing one. You can also sign in using your Google account if you want. Note that specifying an email address is optional, and you can create your account using just a username and password.

Once you have logged in to your account, click on the Create a server button.

Next, specify the server name and the description. You can also choose between Java Edition and Bedrock/Pocket Edition here. Note that, unlike Minehut, Aternos doesn’t support cross-platform play and you’ll have to create separate servers for both editions. Click on the Create button to continue.

On the server dashboard, you’ll have the option to start your server. To manage your server, select an option from the left sidebar. You can switch between Bedrock and Java editions by switching to the Software tab.

Likewise, the Console and File options allow players to access the console and file manager respectively. You can generate new worlds or backup your existing world using the Worlds and Backups option.

Related: How to Make Your Own Minecraft Server: Things You Need to Know

Run Your Minecraft Server

1. Try starting the Minecraft server again by rerunning the java command to executing the jar file:

java -Xmx1024M -Xms1024M -jar minecraft_server.1.16.4.jar nogui

Wait for the system to finish executing. You should get a message that the process is Done!, meaning that the Minecraft server is up and running.

2. You can now detach from the Minecraft screen by pressing Ctrl+a+d.

3. To reattach to the screen, press Ctrl+r.

Note: To make changes to the default configuration, refer to the server.properties file stored in the /minecraft directory.

Playing Online And Port Forwarding

Most of the instructions here are for generic routers. They might not work for yours

If you would like router specific instructions, you can use portforward.com, which has instructions for specific routers. Follow along with the guide, and you can use this site to know exactly where each button isThere will be ads telling you to download such and such, do not click on them.When ads pop up, either ignore them or press the close button in the top right if they are full screen ads.

You May Like: Minecraft Server Logo

How Do I Setup Port Forwarding

When you completing the install of a Minecraft multiplayer server on your local PC instead of hosting it wth a cloud server provider, you need to open up access to your local PC to the internet through port forwarding. If you don’t setup port forwarding, your friends won’t be able to connect.

The instructions for setting up Minecraft Server port forwarding will vary based on the type of router you use. So we’d recommend performing a google search on how to setup port forwarding based on the internet router or ISP you are using. This will complete your server install process.

Opening The Port In The Firewall

Host Your Own Vanilla Minecraft Server

You will now need to open the port you have chosen for your Minecraft server in the firewall. If you would like to learn how to open a port in the firewall on Windows Server 2012, read the article Open a Port in Windows Firewall on Server 2012 and open the port you have chosen to use for your Minecraft server.

Your Minecraft server is ready for use. You can now login with the Minecraft game client.

Don’t Miss: Free Minecraft Server Hosting 247

Firewalling Nats And External Ip Addresses

  • You must open a TCP/UDP port on the firewall.
  • If the server in question is not reachable via a globally routable IP address, you will need to add appropriate address and/or port number translation rules to the gateway usually your router has the global IP address.
  • For help with address translation, opening the firewall and routing , portforward.com is a good source. Select your router from that list, skip the ad that comes after selecting the device, and you will see instructions for setting up port forwarding. Alternatively, you can read the documentation supplied with your router, modem, or other ISP related hardware.
  • Verify the port is open, and note your external IP by using a port checker tool, such as You Get Signal. The default port you should test is 25565, unless you specified something else. Have the Minecraft server running when you test the port.
  • You can obtain your external IP address from YouGetSignal.
  • Local network dedicated servers

    This only applies to Classic servers.

    To correct this, you must add a function to the end of your URL, bookmarks, or whatever else you connect by. The function is: ?override=trueExample:

    Note: This situation does not effect Beta servers, and you should be able to connect via an internal or external IP.

    The SRV record

    To manually verify the SRV record, use :

    Connect To Your Hosting Via Ssh

    The first step is to connect to your dedicated server.

    1. Open the SSH terminal on your local machine and run the following command:

    2. Type in your password and hit Enter.

    If you are connecting to the server for the first time, you need to confirm you want to continue connecting. Type yes and hit Enter.

    You should now be connected to your dedicated server.

    Read Also: Free Minecraft Server Logo Maker

    How To Share Your Minecraft Server With External Users

    You may like to play games with friends who are not on your local network, i.e., friends or gamers who are living in other regions. There are 2 popular and easier ways of sharing your Minecraft server with such users:

    Standard Method

    • Open the command prompt and generate your IP address by typing ipconfig
    • Note down your IP address
    • Open Minecraft server and provide your IP address
    • Go back to the server
    • Open the command prompt and type ipconfig to generate your IP address.
    • To get the admin controls on your server
    • Open the Minecraft server and at the end type op followed by your username
    • It will give you extended controls like whitelisting people, banning people changing game mode, etc.

    Port forwarding

    • Open command prompt and type ipconfig
    • Copy the default gateway
    • In your folder open for the file server properties and click port forwarding
    • Go back to the Minecraft
    • In the IP address enter IPV4 address that you got in the command prompt
    • In the start port and end port fields type 25565
    • This is the ID that you would need to give out to the people who wish to join your network.

    Interacting With The Server

    How to Setup Minecraft Server on Windows 10 (java)

    RCON is enabled by default, so you can exec into the container toaccess the Minecraft server console:

    docker exec -i mc rcon-cli

    Note: The -i is required for interactive use of rcon-cli.

    To run a simple, one-shot command, such as stopping a Minecraft server, pass the command asarguments to rcon-cli, such as:

    docker exec mc rcon-cli stop

    The -i is not needed in this case.

    In order to attach and interact with the Minecraft server, add -it when starting the container, such as

    docker run -d -it -p 25565:25565 --name mc itzg/minecraft-server

    With that you can attach and interact at any time using

    docker attach mc

    and then Control-p Control-q to detach.

    For remote access, configure your Docker daemon to use a tcp socket and attach from another machine:

    docker -H $HOST:2375 attach mc

    Unless you’re on a home/private LAN, you should enable TLS access.

    Don’t Miss: How To Redeem Minecraft Java Code

    Get The Latest Version Of Java

    The first step in setting up a Minecraft server is making sure you have the latest version of Java installed. Minecraft requires Java to run the game and having the latest version will help us run our server without issues.

    You can install the latest version of Java here. Once there, click the red Java Download button as you can see below:

    Then, read and accept the terms by clicking the red Agree and Start Free Download button.

    The Java setup run file should now be in the download folder of your computer. If you need help with finding the download folder, type in downloads into your computer search bar and open the Downloads folder.

    Once in the downloads folder find the JavaSetup executable file and run this application. A popup window may appear asking if the application can make changes to your computer. Click to allow access, you may be asked to provide a password for these permissions.

    Once the application loads click to install Java.

    You may be asked to uninstall a previous Java version, do so as keeping an older version does not help with our server setup.

    Once any previous versions are removed continue through the window prompts until Java is downloaded and up to date.

    The first step in setting up a Minecraft server should now be complete. The following step we must take is downloading and setting up the actual Minecraft server folder.

    Running A Fabric Server

    Enable Fabric server mode by adding a -e TYPE=FABRIC to your command-line. By default, the container will run the latest version, but you can also choose to run a specific version with VERSION.

    docker run -d -v /path/on/host:/data \    -e TYPE=FABRIC \    -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server

    A specific installer version can be requested using FABRIC_INSTALLER_VERSION.

    To use a pre-downloaded Fabric installer, place it in a directory attached into the container, such as the /data volume and specify the name of the installer file with FABRIC_INSTALLER, such as:

    docker run -d -v /path/on/host:/data ... \    -e FABRIC_INSTALLER=fabric-installer-0.5.0.32.jar ...

    To download a Fabric installer from a custom location, such as your own file repository, specify the URL with FABRIC_INSTALLER_URL, such as:

    docker run -d -v /path/on/host:/data ... \    -e FABRIC_INSTALLER_URL=http://HOST/fabric-installer-0.5.0.32.jar ...

    In order to add mods, you have two options:

    Don’t Miss: Minecraft Sky Factory 4 Server

    How To Set Up Minecraft Server On A Local Pc

    • For setting up your Minecraft server you would require to download essential files that you can get from Minecraft:
    • Open https://minecraft.net/en/download/server in Safari and download the JAR file
    • Copy the JAR file you just downloaded and paste it into a new folder.
    • Give a relevant name to the file like minecraft_server.jar. To easily run the server commands you can remove the versions numbers.
    • Open Applications folder from your Go menu and start TextEdit application.
    • Select Plain Text from Format Menu for opening the plain text document.
    • In the text file that opens, copy-paste the following commands for starting the server.

    #!/bin/bash

    cd $

    exec java -Xms1G -Xmx1G -jar minecraft_server.jar

    Note: -Xms1G -Xmx1G denotes the RAM you can increase it by replacing 1 with 2 while rest will remain the same.

    Eula=false should be replaced with Eula=true. Close the file after saving it.

    Open The Server To Online Players

    Minecraft Java Server now in Marketplace

    If you plan on hosting your server for players on your local network, you dont need to worry about this step. If, on the other hand, you would like to make your server accessible by anyone in the world, you will need to enable port forwarding on your router.

    Refer to your specific routers documentation for precise instructions on how to configure port forwarding on your machine. Once you reach your routers Port Forwarding page create a new server and enter the number 25565 into the port when prompted. This will open your Minecraft server to other players.

    It will also be necessary for you to enter your servers local IP address as the Server IP or Output IP to enable port forwarding. You can find your servers local IP by opening the command prompt for your computer. Do this by hitting Windows +R and typing cmd. Once the command panel is open, enter ipconfig and scroll to IPv4 address where you can find your IP address.

    Recommended Reading: Best Cheap Pc For Minecraft

    Why Do You Need Your Own Minecraft Server

    When creating your own Minecraft world, it’s natural to want your own set of rules. The best way to do this is to have Minecraft on your own personal Minecraft Multiplayer server. You can set it up exactly the way you want it, invite the players you want to play with, and change anything at any moment.

    Having your personal Minecraft Multiplayer server gives you control over many elements of the game such as:

    • Changing characteristics of the vanilla Minecraft world รข the creatures inhabiting it, the materials it contains, etc.

    • Providing individual collections of accessible materials that players can use for crafting.

    • Choosing the most convenient way to create and maintain a virtual Minecraft realm as an administrator or game master.

    • Having the opportunity to make money from your Minecraft server.

    • Playing exclusively with your closest friends without being disturbed by strangers.

    • Building your very own private and cozy Minecraft world.

    If the above sounds like a lot of fun, then you definitely should consider creating your private server.

    Find The Best Web Host For Your Minecraft Server

    There are many web hosts that offer Minecraft servers, including , Apex, Hostinger, and PebbleHost, so your first step should be to shop around. You’ll find various server requirements depending on your Minecraft world size, the number of players that’ll connect to your server, and whether you want to install mods. Naturally, youll pay more out of pocket if you purchase a larger plan, but many web hosts let you upgrade from a lower service tier to a higher service tier without too much fuss. So if youre just starting out, it may be safer to start with a smaller plan and upgrade later as your needs grow.

    The most important thing to consider is RAM and virtual CPU allocation. Your server quality and number of players hinge on the server’s memory. 2GB of RAM could support up to 10 players before lag creeps into the game. Virtual CPU allocation affects gameplay smoothness the more CPUs or higher quality CPUs powering your server, the better. As mentioned earlier, if you just want to play with a handful of friends, a basic plan should suffice. If youre hoping to grow a community, however, you must invest money into a high-end hosting subscription.

    The basic server creation steps are more or less the same, regardless of the service you choose. Here’s a quick walkthrough of what you should do:

  • Select the plan suitable for the RAM total that youll need to properly run Minecraft.

  • Configure your server, specifying the region, game version, and add-ons.

  • Recommended Reading: How To Customize Banners In Minecraft

    Making A Minecraft Server

    A few basic steps should be inevitably followed to make a Minecraft serverA) Search and Install Java B) Install Minecraft server software C) Configure the network and serverD) Check and start the serverE) Verify that the server is accessible

    People are usually stuck with the question of how to setup a Minecraft server? It takes considerable efforts to setup a server. Technical skills are required to systematically configure the Minecraft server. You must be skilled and familiar with:

    A) Usage of the command lineB) System ConfigurationC) Adequate networking knowledge like ports, DHCP, IP, and othersD) Network ConfigurationE) For home setups Router Configuration

    How To Create A Server For Minecraft Multiplayer 9 Best Minecraft Servers

    Java Installation and Setup – Minecraft SERVER tutorial 1/4

    What’s the best way to set up a reliable Minecraft Multiplayer server? In this article we’ll be sharing with you 9 of the very best servers for your Minecraft Multiplayer experience. You’ll learn about how to set up and host your Minecraft Multiplayer server, together with price comparisons, the pros and cons of each service, and lots of other great advice to help you get started.

    Minecraft has been around since 2021 and remains hugely popular due to its extremely entertaining and diverse gameplay. But the real fun starts when you create your own server to play with friends .

    If you’re thinking of creating your own Minecraft world, keep reading to find out everything you need to know to do it the right way.

    Also Check: How To Redeem Minecraft Code

    Things To Know When Running A Minecraft Server From Home

    A desktop computer will be more than enough and you do not need any technologically advanced system to run the server.

    It is possible to run and play the Minecraft server on the same machine but it might require a slightly powerful system. Ethernet connections are recommended for use as they are more reliable and wired compared to the wireless connections.

    Optional Plugins Mods And Config Attach Points

    There are optional volume paths that can be attached to supply content to be copied into the data area:

    /plugins: contents are synchronized into /data/plugins for Bukkit related server types. Set SYNC_SKIP_NEWER_IN_DESTINATION=false if you want files from /plugins to take precedence over newer files in /data/plugins.

    /mods: contents are synchronized into /data/mods for Forge related server types. The destination can be changed by setting COPY_MODS_DEST.

    /config: contents are synchronized into /data/config by default, but can be changed with COPY_CONFIG_DEST. For example, -v ./config:/config -e COPY_CONFIG_DEST=/data will allow you to copy over files like bukkit.yml and so on directly into the server directory. Set SYNC_SKIP_NEWER_IN_DESTINATION=false if you want files from /config to take precedence over newer files in /data/config.

    By default, the environment variable processing is performed on synchronized files that match the expected suffixes in REPLACE_ENV_SUFFIXES and are not excluded by REPLACE_ENV_VARIABLES_EXCLUDES and REPLACE_ENV_VARIABLES_EXCLUDE_PATHS. This processing can be disabled by setting REPLACE_ENV_DURING_SYNC to false.

    For example: -e REMOVE_OLD_MODS=TRUE -e REMOVE_OLD_MODS_INCLUDE=”*.jar” -e REMOVE_OLD_MODS_DEPTH=1 will remove all old jar files that are directly inside the plugins/ or mods/ directory.

    For more flexibility with mods/plugins preparation, you can declare directories to use in the MODS variable

    Also Check: How To Code Java For Minecraft

    Popular Articles

    Related Stories

    Stay on op - Ge the daily news in your inbox