Talk:Tutorials/Setting up a server

A stronger mention of custom servers
I think it should be mentioned that most servers use custom server software, such as Bukkit and Spigot

Added --ⓜⓐⓣⓣⓗⓔⓦⓒⓒⓐⓡⓣⓔⓡ 14:04, 25 August 2013 (UTC)

24.41.11.71 23:23, 15 May 2016 (UTC) SSS

Protection
I think that this page should be edit-protected, as someone could plant misinformation to wreck your computer here. Mokiki 02:01, 6 September 2013 (UTC)
 * Only registered users can edit the page, I don't see a need for that, either. ExtremeHeat11 (talk) 00:14, 22 November 2013 (UTC)
 * Anybody can register an account. Allowing only registered users is no protection against someone putting harmful information here. I agree that this page need a stronger protection. --84.202.106.153 20:57, 14 August 2014 (UTC)


 * The level of protection required you to first make at least ten edits first. It is unlikely any vandal will make ten legitimate edits then come vandalize this page. --KnightMiner  (t 21:03, 14 August 2014 (UTC)


 * If any such protection has been in place previously, then it is not anymore now. I registered for an account and started editing the page. No restriction on ten legitimate edits or anything like that. That means any vandal can do the same. --Pbb72 (talk) 15:07, 25 August 2014 (UTC)


 * It should be constantly checked. Skylord wars (talk) 14:01, 15 August 2017 (UTC)

.exe
What about the server .exe? --24.84.174.9 23:54, 17 October 2013 (UTC)

All Minecraft servers software downloaded from the Launcher and minecraft.net are .jar files. Skylord wars (talk) 14:03, 15 August 2017 (UTC)

How to post a world file on a server
Seriously, I made a supercool world in the idea I could post it, but I can't figure out how.

you go to where your server.exe is, and in the "world" folder replace all the files and folders in there with copys from your world. -76.226.147.60 21:45, 24 July 2014 (UTC)

Cleanup
Most of the things mentioned in the article are still valid, for the most part, however, some parts are not. Specifically, the FAQs are old, and don't apply with the latest version of the game, and it seems that there's really no need for them to be there any more either. It's also a bad idea using manual Java PATHs on Windows, as it should work with just "java" and also works reguardless of whether they are using 32bit/64bit/different-installation-paths. ExtremeHeat11 (talk) 00:24, 22 November 2013 (UTC)
 * I'm also cleaning up the page in general, here. ExtremeHeat11 (talk) 01:47, 9 December 2013 (UTC)


 * The default Java installation does NOT update the path variable! If the server requires Java in the path, then the user will have to add it manually. (Note: Minecraft itself works fine without having Java in the path.)
 * Also, on Windows the Java download page strongly recommends using the 32-bit version, even with 64-bit Windows. This is because most people want to use Java in the browser, and almost everybody is using 32-bit browsers. If someone really wants 64-bit Java, they need to do several extra clicks to reach the right download. I recommend following the instructions given by Java, and assume 32-bit Java in this manual. --84.202.106.153 21:04, 14 August 2014 (UTC)
 * From a bit of testing in my VMs, JRE 1.7 x86 builds will not properly set to the system PATH. Testing out with JRE 1.8, Java seems to properly set to the system PATH on both 64 and 32 bit builds. I'm not sure how much longer it will take for Oracle to push JRE 1.8 to java.com (it seems to be taking a while..), but for now I think we should link to Oracle's download page instead of worring about Java's "browser autodetection" tools.  can also be used to determine what OS arc Java is currently using.
 * My point is that making batch files (or even boringly explaining to people how to edit/add/set EnvVars) to statically point to Java installations is bad practice, and as users can change installation directories (either based on custom setting, or using 32/64 bit java) this is definitely not a trivial thing to have people do. ExtremeHeat11 (talk) 21:07, 7 September 2014 (UTC)

Linux Tutorial Needs Editing for clarity
I managed to install a minecraft server on my ubuntu OS but only after I realized the errors I had made while reading the guide. Specifically the part about starting the server. Something should be said about the specifics of the terminal commands like whether or not to include nogui because I rather like a gui. There's also the matter of the wording the guide uses when it says substitute the words "minecraft server." On a side note I'd say that noob linux users like myself should be reminded that they should type the whole name of the .jar file ie. Minecraftserver.1.7.4.jar.

Mistake? in Java batch file example
Hi, just getting a batch file for my son and I noticed that 1048 and 2048 are given for the memory specs for Java: "java.exe -Xms1048M -Xmx2048M -jar minecraft_server.jar nogui"

Should be 1024? This is in the text box, the last line of the batch file, immediately before the Optional Steps heading. I've used this page many times and never noticed it before. anyway, thanks for making it. minedthestep

The page should definitely be edit protected
Some one could easily use the setting up a server page to hack and crash someone's computer. Cameronhclark (talk) 16:48, 4 June 2014 (UTC)

Is it normal that it says that I don't have the proper privileges (mac terminal)?
Please respond, I'm getting confused.

Highly Discourage the use of Hamachi/VPN
Recently quite a few people have been coming into the Minecraft Support IRC with problems with connectivity that were only compounded by the use of Hamachi. The warning banner for the section should be harsher and highly discourage the use of VPN in favor of proper Port Forwarding. --Maxis45 (talk) 00:14, 19 June 2014 (UTC)

Syntax typo in Breakdown of the code section
The memory arguments currently read "-Xmx1G -Xms2G". It should say "-Xms1G -Xmx2G". The 'x' and 's' are backwards.108.45.68.152 01:06, 16 July 2014 (UTC)

Setting up Minecraft server on Mac
whenever i press on the start.command file it shows up with the following:

Last login: Sat Dec 6 12:50:57 on ttys001 marys-MBP:~ marykylm$ /Users/marykylm/Desktop/minecraft_server/start.command ; exit; -bash: /Users/marykylm/Desktop/minecraft_server/start.command: cannot execute binary file logout

[Process completed]

--108.93.100.248 17:55, 6 December 2014 (UTC)

What is this about an Android APK? Spam?
Under Windows Instructions -> Start the Minecraft Server, it's talking about accepting accepting the EULA, then this link crap is there: It signifies that you have read and understood the end user license agreement that you'll follow when using the software and also you can find android apk

DarkFlayme (talk) 04:42, 21 July 2015 (UTC)


 * Fixed. -- Orthotopetalk 04:47, 21 July 2015 (UTC)

Setting up server with Grappl.io?
Can someone add a section for setting up a server with Grappl? --NutYT (talk) 00:53, 27 July 2015 (UTC)

1.9 server download
Why when I download the 1.9 server from minecraft.net it just gives me a bunch of files but the server console isn't there and neither is the eula???

Try downloading it from the launcher. Skylord wars (talk) 14:02, 15 August 2017 (UTC)

Broken Link
The link on this article to the server download is broken. The correct link should end with /download/server/ .--65.27.125.21 17:25, 17 August 2016 (UTC)

Trying to add an Ubuntu tutorial
I had issues adding a tutorial, but nevermind, I fixed it. Thishostingrocks (talk) 16:16, 26 January 2018 (UTC)

Setting up a server with older versions of java can cause issues with port forwarding
I experienced this myself, even though my port forward was set up the minecraft server wouldn't open the port. I fixed it by updating to the newest version of java. I think there should be added info about this because currently it only states that having an updated version of java is for security reasons.

Recommend Java 8 and Updating the Linux Section
The Linux sections and maybe MacOS sections are outdated. I updated openSuse, Debian and Ubuntu sections. I don't know if the Arch ARM or Gentoo sections are outdated and have no way to test them. But from what I've seen in the other sections they are. I also noticed the Linux sections recommend Java 6 or 7. This doesn't make much sense. Java 7 has had security updated discontinued since 2015. To use Java 7 is extremely insecure and I don't think the official Minecraft wiki should recommend it. I don't have an ARM processor and from what I understand install Gentoo is extremely difficult. So I can't test and update the sections. If anyone has Gentoo or Arch ARM installed can they please update those sections? APersonWhoLikesPasta (talk) 02:49, 22 June 2019 (UTC)
 * I am updating the Linux sections APersonWhoLikesPasta (talk) 05:24, 25 June 2019 (UTC)

Adding Java Section
Should there be a general purpose Java section to answer possible questions? The section would answer questions like Java 8 or Java 11, OpenJDK vs Oracle JDK, and JRE vs JDK. As well as providing an overview of what Java is. Do you think this would be useful? APersonWhoLikesPasta (talk) 19:36, 22 June 2019 (UTC)
 * I'm adding a Java section which will be an FAQ about Java APersonWhoLikesPasta (talk) 01:40, 24 June 2019 (UTC)

IPv4 preference - why?
https://minecraft.gamepedia.com/Tutorials/Setting_up_a_server#IP_address_notes

> If for some reason you have trouble with connecting publicly over your IPv4, try connecting over IPv6. This should only be done for testing whether your server is online, external players should still use IPv4.

Why should external player still use IPv4? This seems backwards. –Preceding unsigned comment was added by 118.149.56.51 (talk) at 9:39, 8 January 2020 (UTC). Please sign your posts with

Do not download Radmin VPN
Radmin is a Trojan Horse that hacker use to acces personel data and download malicious files on your computer please do not in any circumstance download Radmin VPN. Unistall it for the safety of you computer.

After doing some research Reimage is not trustable and be unistall too.

5.252.60.217 14:13, 4 July 2020 (UTC)

do your research, it isn't unless you got it from some pajeet 250% working highly compressed site 95.216.20.252 18:52, 16 June 2020 (UTC)

localhost
In the sections where it can tell users to enter  as an IP it may be useful to add   as some users may find this confusing since everything else is numerical instead of a string.

useful resource for multiple servers on one linux box
It might be worth adding this solution to the list of links in the Startup and maintenance script section for anyone wanting an easier way to set up and run multiple servers on the same (linux) PC Mvconners (talk) 03:36, 30 October 2020 (UTC)

I dun goofed
I accidently opened the server file in notepad, how do I undo this?

Undo (Revision as of 00:02, 29 November 2020 by 9superswords)
I do not think that (Revision as of 00:02, 29 November 2020 by 9superswords) is bringing anything new to this documentation. A better way would have been to add additional dockers as a list with their numbers of pulls.

I did screw up while trying to fix it in (revision 1905827 by Plexus85) but I can not undo this with my user.

--Plexus85 (talk) 10:56, 9 April 2021 (UTC)

Minecraft server lagspikes when issuing any command
Hi!

I've been running a mc server for a year now for me and my friends. It was running perfectly until this week. Now if I issue ANY command a 5-20 sec lagspike occur. I'm using the same plugins as I've been using since the beginning, all of them are lightweight (teleport and home plugins). The server runs just as smoothly as ever when not issuing any commands. (Tested it with view distance, big farms, etc..), I'm 99% sure it is not a hardware/network dependent issue.

Any ideas?

Recent update to Java 16
Minecraft recently updated to Java version 16 (it had previously been on version 8). Because of this, all of the instructions which say to install OpenJDK 8 are out of date. I have updated the sections for Debian and Arch (which doesn't actually have java 16 yet), but the rest of the Linux distros need to be tested and updated. Furthermore, this may have impacts on the Windows and Mac sections (I didn't check, as I'm unfamiliar with both platforms). Finally, that was my first edit, so I'm not sure if I followed the style guide properly; corrections are welcome.

--Jonahhw (talk) 22:28, 8 June 2021 (UTC)

> --singleplayer  > Runs the server in offline mode (unknown where  is used for, probably used internally by mojang?)

I dug into the code for this and found out what it's for: If you play in a world in singleplayer then move that world to a server, the singleplayer inventory is typically gone. But using this flag, you can specify the player name that you will connect with, and you'll have access to all the original world's items.

It also permanentely copies the items to be in that player's inventory, even after the flag is removed (and online mode is potentially enabled again).

So in other words, it primarily seems like a way of importing singleplayer worlds into a server, and bringing a player's inventory with them by specifying the player who should receive the items for this initial setup.

Contradicting lines in "Java options" section
As of 3. Common instructions 3.1. Java options it reads in the first bullet point '-Xmx4G (two gigabytes)', shall this mean 4GB or 2GB?

Installing Java on CentOS instructions
The "Installing Java" section under "Linux Instructions" is missing a section for CentOS and other RHEL-based distros.

You can use this:

CentOS, Alma Linux, Rocky Linux
For CentOS, Alma Linux, Rocky Linux, and other RHEL-based distros, you can run the  to install Java 17, and   to install Java 16. More instructions are available here.