Talk:Tutorials/Setting up a server/Archive 1

Fix tutorial
The link to "Windows tutorial with focus on how to forward a port" under "Other Tutorials" is broken. Anyone has a new one?


 * 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).


 * Nagroth 13:49, 20 August 2011 (UTC)

Mac issue
I run a mac and when I execute start.command I always get the following:

admin/op.txt
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? TiriPon 20:51, 5 January 2011 (UTC)

Old server version linked
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. Mirth23 23:47, 22 February 2011 (UTC)

Permissions?
I run a 15 inch macbook pro (1 or 2 models ago) with mac OS X 10.6.7 (the most current). Im trying to start my minecraft server via "start.command". Yet, "I don't have permission." I tried unlocking the file info window and changing my permission to read and access. Even when I do and the changes are saved, I still don't have permission. Help please?

Nevermind. I just changed the permissions for "net.minecraft.server.MinecraftServer" and everything is fixed.

Hamachi
How do I sign up for admin rights using Hamachi? Joev14 19:57, 27 April 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. Hailfire 15:28, 6 May 2011 (UTC)

I agree. Mepholic 20:05, 4 June 2011 (UTC)

Hamatchi Admin?
Make it more clear how to become an admin on hamatchi, I can't figure it out for the life of me.

Hamachi Admin not needed
As far as I can tell, to set up a Hamachi server you do not actually need to have "Admin Rights" as the article states. You just need to click Network and then Create a New Network. Whoever joins your server just clicks "join an existing network" and then enters the network name you specified. There are tons of videos about it on Youtube. I am running a server and I never signed up for "Admin Rights". Please change this, if it has not been changed already.

p.s. If you are trying to set up a server, Hamachi is a lot easier than port forwarding. Bobthejeffmonkey 23:48, 30 May 2011 (UTC)

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. Mepholic 20:27, 4 June 2011 (UTC)

Java Virtual Machine still not working
XP Machine has 2GB of Ram, which should be plenty. Online version of the game works fine. But every time I try to run minecraft.exe, it says "failed to start Java virtual machine". Any steps I'm missing? Chadlupkes 02:10, 18 July 2011 (UTC)

Ans: just open the .jar

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. -Worldwise001 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.
 * Nagroth 11:39, 20 August 2011 (UTC)

I can't get my server to work
I am trying to set up a server, but when i try and test it, it keeps saying it can't connect to it. I am using the beta 1.8.1, if it helps anybody.