Talk:Tutorials/Setting up a server/Archive 1
|This is an archive page of Talk:Tutorials/Setting up a server. Do not edit this page.|
New sections can be added at the current talk page.
|Please do not ask for help regarding setting up a server here. This discussion page is for issues regarding the wiki. If you are having problems setting up a server, ask for help at the Minecraft Forums|
- 1 Fix tutorial
- 2 admin/op.txt
- 3 Old server version linked
- 4 Split this article?
- 5 Swappiness on Linux Servers?
- 6 Alternative Java packages
- 7 Setting up Ports
- 8 Detailed guide video
- 9 Problem with java x64
- 10 Starting issues - Part 2
- 11 Issues with the ram upgrade
- 12 Splitting
- 13 RAM allocation setting in Terminal/Batch
- 14 Easier instructions
- 15 Port Map Always says router incompatible
- 16 Increasing the Amount of RAM - Wrong.
- 17 External or Internal IP-address
- 18 Linux: nogui switch unnecessary
- 19 How to skip port forwarding
- 20 Memory Allocation (Mac)
- 21 IP
- 22 Minecraft Server Configurator
- 23 How can I use my commands in multiplayer?
- 24 Debian server: Can't connect from ubuntu
- 25 chmod a+x
- 26 how to set up a minecraft server with a webhost
- 27 Files are placed in the wrong area
- 28 Ubuntu Linux section out of date (and possibly dangerous)
The link to "Windows tutorial with focus on how to forward a port" under "Other Tutorials" is broken. Anyone has a new one? –Preceding unsigned comment was added by( | ) 12:56, 14 October 2010. Please sign your posts with ~~~~
- I'm not sure when that was posted. There are tons of guides on how to do this on all kinds of gaming forums, but here's something for you.
- What is Port Forwarding?
- It's used when you have a router or wireless router between you and the internet. The router will get a public IP Address from your internet provider, and it also will provide private IP Addresses for any computers which you hook up to it (including wireless).
- When people try to reach you, they only know the public IP address. Port forwarding is a setting in your router that tells it which local IP Address to send it to.
- If possible, a static local IP setup is best, but that's a whole other can of worms I'm not going into right now.
- A quick and dirty outline to setting it up
- Obtain your computer's local IP address.
- 1. Depending on your OS-
- Windows XP- Go to 'Start' then 'Run' and type the letters cmd and press Enter.
- Windows Vista/7- Go to the Windows button, and type command into the search bar. You should see an item at the top of the list called Command Prompt, choose that. (You do not need to Run As Administrator)
- 2. Click in the black window. Type the command ipconfig and hit Enter.
- 3. Look through the list until you see the IP Address, or IPv4 Address. Since you are behind a router, it will almost always start with 192.168.x.x with other numbers instead of the x. For some of you it might start with a 10. instead.
- Find the local IP address of your router.
- The easiest way to do this is to type your router's brand, model number, and the phrase default IP address into a search engine like Google. You can also consult the router's support web site.
- It will almost always start with 192.168 and the next two numbers depends on your router brand and model.
- Log into your router's configuration page. To do this you will simply type the router's IP address into a web browser. If you're never set a password and don't know what the default is, check the same places you just went for the default IP address.
- Forward the Port
- First, if you're just using the default then the port you want to forward is 25565. If you want to use a different port number you can, but this will have to match whatever port number is in your server's config file.
- If you are running multiple servers, you'll need a different rule for each one.
- You should only need to forward TCP ports, but if your only option is to also allow UDP that's ok.
- Filling out the information is simple. Any Names are just for keeping track of things, and if your router lets you pick a pre-defined Application just leave that space alone. Put in the port number, and then the local IP of the computer your server is running on.
- Save your changes!!!
- Test it out. If you use a non-standard port, you'll need to add the port number in your Client or it won't connect.
- Here's some resources for finding information
- Portforward.com has a bunch of walkthroughs for how to configure specific routers. Note that you will need to know your router brand and model.
- If you don't like that site or prefer getting information direct, go to your manufacturer's support page for instructions. The most common are Belkin, D-link, Linksys, or Netgear (in alphabetical order).
- 13:49, 20 August 2011 (UTC)
Question: So i follow ALL instructions for Wndows,(XP 32-Bit) i go to click on the batch file (the minecraft server.jar) and the command prompt just flashes on the screen for a split second and then goes off, any ideas guys?
thanks23:47, 7 July 2012 (UTC)
2. Add your username to the admin.txt and op.txt. Admin.txt allows you to execute server commands, and op privileges allows you to destroy/place blocks.
Isn't it ops.txt? is admin.txt still used?20:51, 5 January 2011 (UTC)
It may be worth mentioning in the download section that the link at the top of http://www.minecraft.net/servers.jsp results in one downloading an extremely out of date server. 23:47, 22 February 2011 (UTC)
Split this article?
This article is very confusing to read. I believe splitting this article into "Windows Help" "Linux Help" and "Mac Help" would greatly improve the article.15:28, 6 May 2011 (UTC)
- I agree. 20:05, 4 June 2011 (UTC)
- Me too... -- -- 20:04, 15 January 2012 (UTC)
- I think this would be a good idea. –Preceding unsigned comment was added by ( | ) 19:17, 14 March 2012. Please sign your posts with ~~~~
- Maybe we can spit the article into seperated parts to understand it better. 17:04, 3 April 2012 (UTC)Pterchang4ever
Swappiness on Linux Servers?
Has anybody experimented with swappiness on Linux based Minecraft servers? There has been a lot of debate over whether servers vs. desktops should swap more or less. The general consensus is that servers should swap memory more, while desktops should swap memory less.
Some good reading on this right here.
I have a suspicion that lowering the swappiness on a Linux based Minecraft servers will lower the load time for chunks that people haven't seen or been in for a while.20:27, 4 June 2011 (UTC)
- You may decrease the swapiness, but that won't do anything until your RAM is filled up to ~95%. Debian Squeeze sees the SWAP as a backup and won't really use it until it has no other chance. If you want chunks to be loaded as fast as possible and have considerable free RAM (at least the size of the whole minecraft server), you may use /dev/shm as server directory (ATTENTION: THIS IS THE RAM ITSELF - ANY REBOOT WILL DELETE ANYTHING IN HERE!). Wait, I'll just upload my initscript... -- -- 19:51, 15 January 2012 (UTC)
- Update: Did it. See http://www.minecraftwiki.net/wiki/User:M3tal_Warrior/Server_Startup_Script
Alternative Java packages
Arch Linux has alternative java packages in community besides openjdk:
community/jre 7-3 Oracle's Java Runtime Environment community/jdk 7-3 Oracle's Java Development Kit
jre is all that's required for the Minecraft server to work. -06:32, 9 August 2011 (UTC)
Setting up Ports
Here's some proposed information to add regarding setting up ports and connecting (which probably could use editing)
- What reasons are there for changing to a different port number?
- The default is already in use.
- You want to run more than one server- each will need its own port.
- The default is blocked. Some networks might have the minecraft port blocked to prevent people from running servers, or to play at all. Usually you'll only see this in places like schools, businesses, or public WiFi hotspots.
- Preventing random scans from potential attackers. (see note on security below)
- How to change the default port
- If you want to use a different port than the default, change it in the server config file. It's usually not a good idea to use port numbers between 0 and 1023 since they are reserved. The highest numbered port which can be used is 65535.
- For a list of commonly used ports check Wikipedia.
- You will need to update your port forwarding rule to match your server port. If you run more than one server, each one will need to have a different port number (and its own forwarding rule).
- If it keeps saying the port is already in use
- You might have a firewall, antivirus, or other security program blocking it. You also might not be running it with the correct permissions, depending on what OS you're using.
- How to connect to a server using a non-standard port
- Users who wish to connect to a server which is running on a non-standard port must add a colon and port number after the IP address. (example 192.168.2.3:25590 if the server port is 25590 and the IP it's running on is 192.168.2.3)
- This will also work with DNS, and dynamic DNS, so for example "minecraft.mydomain.com:25590" will work instead of the IP address, but note the port number must still be used.
- You WILL have to add the port number even if you're connecting to a server on your own local network.
- A note on security
- Changing your port is not a very strong security feature on its own.
- It's mostly only useful to avoid detection by someone who is just randomly scanning ports, but as minecraft gets more popular it's more likely that it will start being scanned for specifically.
- If your server is getting attacked then it's probably a better idea to just change your IP address instead. (Most ISP's will assign a new IP address when your router's MAC address changes.)
- Also, you'll have to tell everybody what port to use or they can't connect. So it's most useful if you run a purely private server.
- 11:39, 20 August 2011 (UTC)
Detailed guide video
I've made a detailed, in depth video on how to make a server on Windows. It covers everything, and is pretty helpful. The first time I set up my own server the instructions on this site only confused the crap out of me. Honestly, they're of absolutely NO help for most of the process, and I had to scour the internet for most the set up. My video completely eliminates that, and is pretty in depth on how to to everything, and what everything is. Would anybody be interested in in having it on the wiki? I originally made it for my friend, who couldn't understand this tutorial either. --03:20, 5 November 2011 (UTC)
- GOD DAMN YES -- 18:28, 6 December 2011 (UTC)
Problem with java x64
This caption was taken from official java site: " Users should download 64-bit Java software, if they are running 64-bit browsers. For downloading 64-bit Java click 64-bit manual download.
Note: Online Installation and Java Update features are not applicable to 64-bit architecture.
Follow these instructions for installing 64-bit Java on your system.
1.Choose the 64-bit Windows offline download. The File Download dialog box appears. 2.Choose the folder location. (Save the file to a known location on your computer, for example, to your desktop) and Click Save. 3.Close all applications including the browser. 4.Double-click on the saved file icon to start the installation process. "
Obviously I did EXACTLY what this instruction says, clicked the offline installation and all the other steps. However, even after 4 retries my java keeps saving in \program files(x86) and if I open control panel--add or remove programs it shows me: Java(32 bits). –Preceding unsigned comment was added by( | ) 12:55, 11 January 2012. Please sign your posts with ~~~~
- Do you have a 64bit operating system? All your tries will fail if you are running a 32bit system, regardless of your browser... -- 20:01, 15 January 2012 (UTC)
Starting issues - Part 2
Q: Mine doesn't run at all What do I do?
- Brilliant! Try turning it off and on again! - OK, sorry, that was nasty, but how do you think we can help you without knowing ANYTHING about your system at all? -- -- 11:24, 20 February 2012 (UTC)
Issues with the ram upgrade
I performed the batch file thing exactly as the guide said. If I run the batch file now(normally), I get much more RAM, but it doesn't have the necessary admin permissions. However if I run as ADMIN I get an error saying It couldn't find the Jarfile. I'm using the exe version on Windows 7, on a laptop with 6G of RAM. I have no idea how to make it work with a reasonable amount of RAM. Please help!
By the way I can connect to the server fine with the (very) limited RAM.
20:42, 25 February 2012 (UTC)
Jay Bazuzi (talk • contribs • logs) recently tried to split the sections on installing Java and allocating more memory to the server into their own articles. I believe Ultradude25 missed this intention when he deleted the new articles, which were in the main namespace. I think splitting these topics is reasonable; it shortens the article and makes it more specifically about configuring a Minecraft server. The new articles should either be in the Tutorials/ namespace or be subpages of this one; I'm not sure which is more appropriate. Anyone have opinions on this? -- 08:58, 1 March 2012 (UTC)
- As stated above it would be more reasonable to split the article into the three most obvious main sections: Windows, Linux, MacOS/BSD. I definitely agree that the article is too long and too mixed up. -- -- 09:43, 1 March 2012 (UTC)
RAM allocation setting in Terminal/Batch
Either we now use the Gigibyte-setting in the command line, and rewrite the text (which talks about MiB atm), or we rechange it back to MiB and leave the text. By the way it's fatally wrong to explain the server would only use 100 MB by default while starting it with a "-Xms2G" - that is horseshit. The server might use only 100 MB in idle, but it WILL reserve the full 2 GiB, needed or not, and therefore "use" it - for spare. I personally don't have the time to do that myself, but since talk's about to split the article, it would be on the way to change that too. ---- 16:13, 2 March 2012 (UTC)
My friends and I want to set up a server, but none of us know anything about networking and the instructions on this page are extremely hard to follow for us. We got someone else to do it for us once, but it was really buggy and he didn't bother to teach us how to operate it (change settings, fix problems, etc.). Can someone please rewrite the page so it's more user-friendly for people who don't already know what they're doing? Or failing that, can someone please provide a link to a website that has such instructions?23:17, 24 March 2012 (UTC)
- Hopefully not. If you don't get that setup, (which btw. is as easy as it could propably be) running a server is not what you should do. I guess it'd be better for you to just search for a server that fits your needs. If you like you can play on my server, if you comply to the rules and give me your minecraft names (for it is whitelisted). But beware, we're changing the map in a couple of days, and if you grief you're out. -- -- 02:09, 25 March 2012 (UTC)
- Can you at least link me to a crash course in networking or something? I'm a fast learner, I just don't know where to start. And thanks for the invite, but we'd prefer a private server if we can manage it. 19:36, 25 March 2012 (UTC)
- Actually I learned my knowledge all by myself in many years - and it took me 3 years managing a local fileserver until I felt ready for a local webserver with wiki and torrent tracker in a selfmade network with 50 people trying to hack it. I learned while being helped by a friend, a howtohack book, an IT training school and by being attacked - not very skillful, but with feedback. After two years of learning on a Debian machine I now opened the gate into the world wide web. That's my story, and it's not easy to press all that into a little knowhow. The book alone is as big as the Bible... If you like to learn about networking, try . It's for Ubuntu Linux, but the basics are all the same. And it will be identical to Debian Squeeze, which I would strongly recommend for a server machine, for management and security reasons. -- -- 21:55, 25 March 2012 (UTC)
Port Map Always says router incompatible
But why Port Map can't find my router IP?
I followed the video tutorial at the beginning of the tutorial, but, not working... –Preceding unsigned comment was added by( ) 15:39, 22 April 2012. Please sign your posts with ~~~~
- You are one of those persons who shouldn't run their own server, because of having no clue what a network is, how it works and how to shape it to your needs. Your router IP is the same as yours, except for the 1 in the last block. Your router can't be incompatible to a game which works on OSI layer 7. -- -- 21:16, 20 May 2012 (UTC)
- Well, hold on, if Minecraft had server making, then why do they allow players to make servers when they don't know how to? The answer is, it's because they aren't really internet skills. But I absolutely agree with you. Don't run a server if you are the absolute beginner at internet-server-making. Notch should make people to go to HIS servers that he makes. Or can't he do it, and let other players make them for him?? :| –Preceding unsigned comment was added by ( ) 00:59, 27 June 2012. Please sign your posts with ~~~~
Increasing the Amount of RAM - Wrong.
This section is horribly flawed and horribly ambiguous. Whilst a batch file is probably the most cumbersome way for a noob to execute this command, there are many elements wrong with it, even things as simple as the command itself. "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" -Xmx1G -Xms1G -jar "C:\Users\Windows7\Desktop\Minecraft\Minecraft_Server.exe" would be more appropriate for 99% of users running an up to date OS with an up to date Java install.17:08, 26 May 2012 (UTC)
- I'm not dead sure, but pretty, that your suggested command line is wrong at least at two things: First being that almost every OS today is an 64bit system with Java (64) not installed in your path, and second being no User is called "Windows7", as this folder is to be the users name. At least this was what I have seen so far on multiple Win7 systems. -- -- 00:05, 27 May 2012 (UTC)
External or Internal IP-address
Hi, i want to start a server for my littlebrother today, and read Tutorials/Setting up a server , and found out a lot of it, and i found out that i have a dynamic IP-address, and have to use the external IP so others can find it online, so..
I have to use the external, but do i put that in the IP section in the 'server' file, or do i just use the external IP in the connect inside det game and then use the internal IP in 'server'-file??
When i put the external ip in the 'server'-file, it comes with this message:
[INFO] Starting minecraft server version 1.2.5 [INFO] Loading properties [INFO] Starting Minecraft server on xx.xx.xx.xx:25565 [WARNING] **** FAILED TO BIND TO PORT! [WARNING] The exception was: java.net.BindException: Cannot assign requested address: JVM_Bind [WARNING] Perhaps a server is already running on that port?
where the xx.xx.xx.xx is the external IP.
And of course i then cant connect to the server..
If i use the internal IP in the 'server'-file and use the external in minecraft, then i get this:
Failed to connect to the server Connection timed out: connect
(Sorry for the bad writing.. lol) –Preceding unsigned comment was added by( ) 19:05, 26 May 2012. Please sign your posts with ~~~~
- Read again. Putting down ANY IP in the server.properties file is wrong for 99% of all servers. And I strongly suggest you should be using the server only local, since you don't seem to grasp what you're doing (based on the fact that you found out that your external IP is dynamic - which comes as a surprise only for noobs). But well, it's your computer at risk, not mine... -- -- 00:05, 27 May 2012 (UTC)
Linux: nogui switch unnecessary
I don't see why this guide should instruct usage of the nogui switch by default on Linux when it's not mentioned on Windows or Mac OS X instructions. The GUI is fully functional on Linux.
I believe the official website mentions the nogui option because the "Other OS / without GUI" portion has the commands for these scenarios merged into one (i.e. the editor of the website [Notch!?] was too lazy to write a command with the nogui option and one without).17:51, 19 June 2012 (UTC)
How to skip port forwarding
What many people dont know is that you can skip port forwarding. So if you cant figure out how you can do this. (by the way this may be leavin something out but nothing has been discovered yet)
What your going to do is open CMD/command prompt. After that you will need to type in "ipconfig"
After that a lot of stuff will come up. What you need to do is scroll up untill you see the heading "Wireless LAN adapter Wireless Network Connection:" After you do that it should say "IPv4 Address" To the right it should say a number somthing like "18.104.22.168" (not with those numbers though)(may be a little different) Now all you are going to do is type that in as an server address on minecraft. But you have to have this running click  And save then run it –Preceding unsigned comment was added by ( ) 03:49, 2 July 2012. Please sign your posts with ~~~~
- Port forwarding is not necessary for people who are on your local network. Anyone else will still be unable to connect. -- 10:55, 17 July 2012 (UTC)
Memory Allocation (Mac)
I followed the instructions in the wiki for allocating more memory withe the start.command file, but I get a number of error messages every time I load it up. Without allocating memory, I am unable to even finish loading the the spawn on my world, much less host multiple players. Anyone have any suggestions?
04:50, 2 July 2012 (UTC)Reaper1442
Ok, is it possible, as long as the server's running to type in your IP address instead of 'localhost' because the page said that it wasn't recommended unless there was 6 RAM. If so, which, external or internal.
p.s. if this was already asked on this page, sorry, trying to read everyones dumb problems is difficult.
02:38, 10 July 2012 (UTC)Random Zelda Fan
Minecraft Server Configurator
ServerBuilderMC allows you to easily create and host a server, without the hassle of editing files. ServerBuilderMC also has some advanced options, which allow you to configure absolutely everything about your server. Please note that this is still in early beta! http://beta.serverbuildermc.com –Preceding unsigned comment was added by ( | ) 15:15, 14 July 2012. Please sign your posts with ~~~~
How can I use my commands in multiplayer?
I've set up my server and people can join it. Everything seems to be working okay, except for the fact i can't use any commands except from the window i open from my minecraft server folder on my desktop. I use a mac and run my server off of hamachi. Please help! –Preceding unsigned comment was added by( ) 01:12, 17 July 2012. Please sign your posts with ~~~~
- Make sure your username is listed in the ops.txt configuration file. -- 04:01, 17 July 2012 (UTC)
Debian server: Can't connect from ubuntu
I made a home server. It runs on my computer running Debian. My brother can't connect to it from Ubuntu, but he can from Win7 on the same computer. It happens both with vanilla and with Bukkit.
[INFO] username [/ip address] logged in with entity id 13499 at ([world] -169.5, 64.62000000476837, 239.5)
[INFO] username lost connection: disconnect.endOfStream
09:55, 29 July 2012 (UTC)
I follow the instructions perfectly, yet no matter what I do the terminal says 'chmod' is not recognised as an internal or external command, operable program or batch file. What can I do to fix it? Also, I'm trying to set up the server with a Windows 7 laptop and I don't have TextEdit. What's a program I could use instead? –Preceding unsigned comment was added by( ) 06:56, 4 August 2012 (UTC). Please sign your posts with ~~~~
- The page contains instructions for setting up servers on a variety of operating systems. Since you're using Windows, you should look at the section, not the Mac one. -- 19:23, 4 August 2012 (UTC)
how to set up a minecraft server with a webhost
Hello all! I am trying to setup a minecraft server with a webhost instead of hosting it on my computer. I have 3 major concerns: can hosting on a webhost give my system vulerabilities; how do you set up a server on with a webhost; if I set up with a webhost will I still be able to update my server. Thanks all.
- No* (a good reason to use a hosted server); depends on the host, decent ones should provide instructions and/or support; and yes.
- Your computer will not be at risk. However, using the same username/email and password on multiple online services is a major security hazard. -- 07:38, 31 August 2012 (UTC)
Files are placed in the wrong area
I am using Ubuntu 12.10 and have recently downloaded and started the server. However, I have noticed that instead of the files being placed in the directory where the .jar is located (~/.minecraft/server/), they are being placed in ~/Documents. This is becoming a point of increasing frustration and any help would be appreciated. Thanks.02:11, 29 October 2012 (UTC)
EDIT: I worked around the last problem, but now I can only run the server properly if I'm an admin. When I try to run it normally, it repeatedly runs through a list of class files while informing me that there is a problem with my server.properties file. I have made the jar executable to non-admins.
- How are you running the server? If you're double-clicking the jar, it may generate files in the current working directory, which defaults to ~/Documents. Launching it via terminal (or shell script) might work better. -- 03:30, 29 October 2012 (UTC)
- That's how I worked around the first problem: via shell script. But I now have a different problem, as I have already described. 15:22, 29 October 2012 (UTC)
- EDIT: Fixed the second problem after realizing that the permissions for the entire server folder were set to root-only. I transferred the ownership to the user and it's working fine now.
- By the way: Ubuntu is a child of Debian, so everything should work like there. You should be able to use the Debian script to manage your server. There are three (afaik), I maintain one of them. -- -- 14:01, 2 November 2012 (UTC)
Ubuntu Linux section out of date (and possibly dangerous)
Apparently there seems to be some misunderstanding with the announcement about Canonical removing sun-java. It's not just because of a "licensing issue," it's because they stopped developing sun-java and promoted OpenJDK as the Reference Implementation. All official Oracle binaries for over a year have been built off the OpenJDK code.
Trying to install sun-java is actually dangerous now, as it's no longer receiving security updates, and Java is nearly as heavily exploited lately as Windows has been historically.
Therefore it wouls seem that all you would need to do to install Java would be to go to http://apt.ubuntu.com/p/openjdk-7-jre or just open a command line and type
sudo apt-get install openjdk-7-jre
--14:43, 30 October 2012 (UTC)