Each Time You Start Your Server

From Pediascape
Jump to: navigation, search

This post is over one year old and may have outdated information. Setting up a Minecraft server on your home Windows computer is fairly easy. You can play with your friends over a local network (LAN) or on the Internet within minutes if you have basic knowledge of computers.



Note: This guide only applies to Minecraft Java Edition. It is not the original version for PC. All players who wish to connect must have bought Minecraft Java Edition for their computer from minecraft.net. Mobile and console versions of Minecraft Java Edition are not compatible with each other. You will need Minecraft Realms for those versions.



Computer Performance Requirements To reduce latency, I recommend a wired network. You might need more power depending upon how many players you have on your server. This will also help to end as many background and running programs possible.



If you plan to also play Minecraft on the same computer that the server is on, I recommend having 4 GB of RAM at a minimum and a fairly new processor and graphics card.



Amazon has the top-rated gaming PCs that will take on any task.



Step 1: Download the Latest Java Version



Java.com/en/download allows you to download the most recent version of Java.



Step 2: Download the Minecraft Server



Download the latest version of the server from the official download page. It will be a server.jar file. Put that downloaded file in a folder where you'd like to run the Minecraft server.



Step 3: Run your server



Open a Windows prompt in the folder that contains the server.jar file. You can do this by holding down shift and right-clicking in an empty space within the folder.



To start the server from the command prompt, you can run the following command:



java -Xmx1024M. -Xms1024M. -jar server.jar Nogui You can copy the command by right-clicking and choosing Paste (ctrl+v is not supported in command prompts).



PowerShell instead of the Command Prompt. If the command prompt doesn't work, or you prefer PowerShell to it, you can use PowerShell. It works exactly as well. Just make sure you have PowerShell open in the directory where server.jar is. This might be different for different Windows versions. Search online if you're unsure how. Once you have the correct directory, run the command above. You can paste the command into PowerShell by right-clicking inside the window.



Once ran, the Minecraft server will create some files in the folder it resides in and you should receive an error message about the EULA:



You will need to open the generated.eula.txt files and set:



After you have done that, run the command again. After that, a new environment should be created. Your server should now be running.



Step 4: Server Commands



Server commands are used to control the server. These commands can be entered in the command prompt. Here are some basic server commands to help you get to know them. At the minimum, you should be able to use stop to safely shut down the server.



Step 5 - Connect to Your Server



Open the Minecraft regular game, click Multiplayer, and then click Direct Connect. This will allow you to enter an IP address based on your location relative to the server computer.



On the same computer If you're playing Minecraft on the same computer as the Minecraft server, enter 127.0.0.1:



On another computer in a network If you are on another computer within the network (connected to a router), enter the local address of the computer running the server. To find this, go to the computer that's running the server and type ipconfig into a command prompt. Although the IP address should be similar to 192.168.1.1 in appearance, the last two numbers might be different.



(The above is an example IP Address only.



Over the Internet To connect to the Minecraft server over the Internet, you'll need to know the external IP address of the computer the Minecraft server is on. You can find it by browsing to whatismyip.com while on the Minecraft server PC. Just like the local IP address, it will be 4 sets of numbers separated by periods. It may look like 65.214.224.57. However, each set of numbers will be unique.



If the computer that the Minecraft server is on is connected via a router to the Internet modem, which it should be for security reasons, then you'll have to make sure the router is properly port forwarding Minecraft Internet traffic to the computer that has the Minecraft server on it (even if you only have the one computer).



Port forwarding is something your router does so that it sends the right type of traffic to the right computer. Minecraft uses port 25565, so the router needs to be setup to send any traffic on port 25565 to the computer that has the Minecraft server.



Portforward.com is your best choice. Scroll down and choose your router model. The model number is usually listed on the front or back of your router.



Next, select the game you want to port forward for, which is "Minecraft Server" in this case. It might tell you that you require a static Internet address. It's referring to the internal IP address. Every time a computer is connected to your router, or turned on, the router assigns it a local IP address. It will usually remain the same, but it is possible to change. You may need to update the settings if your computer is disconnected from the router or turned off. If you run Minecraft server a lot and shut down your computer often, you may want to look into giving your computers static local IP addresses.



Once you've forwarded port 25565 to the correct computer, you can test it at www.yougetsignal.com/tools/open-ports. You should also check port 25565 (80 being the default port to website traffic). PAXTON'S BLOG For additional troubleshooting, see the Minecraft server install wiki.



Keep in mind that both your external and local IP addresses may change when you shut down your computer or reset your modem. Make sure you double-check your IP addresses before you start your server. Also, make sure to update your settings as needed.