User:ExtremeHeat11/sandbox/Setting up a server

This tutorial takes you through the steps of setting up your own server using the default server software that Mojang distributes free of charge. The software may be installed on most operating systems, including Windows, Mac and Linux.

Regardless of your operating system, you must begin by downloading the server software from the minecraft download page, and save it to the directory in-which you will run the server.

Note: There is also custom server software available, which most large servers use, but these applications are not   supported by Mojang.

Plan 9
Use: Then snarf java -jar  xvmf in acme

Setting up a VPN
An alternate way to set up a server between you and your friends is to set up a VPN (virtual private network). This method may be deemed unrecommended, and an inconvenience for many users due to the fact that all users whom wish to connect to the server must download external software in order to join or create server. An alternative to this method is to port forward. A free software utility that can be used to set this up a VPN is Hamachi by LogMeIn. The free version allows up to 5 connections (i.e. players).

Setting up Hamachi

 * 1) Install Hamachi on each computer that wishes to participate in the server, including the host.   Windows / Mac   Linux (32-bit and 64-bit .deb and .rpm packages are available, you can install it on Gentoo by emerging "net-misc/logmein-hamachi")
 * 2) The host server signs up for admin via the Logmein website.
 * 3) On the host machine, a new Hamachi network is created.
 * 4) The host installs and configures the Minecraft server software:   The server IP field in server.properties is left blank (as default).
 * 5) The host passes the newly created Hamachi network credentials to each of the players.
 * 6) The players connect to the host's Hamachi network.
 * 7) Now that all the machines are connected within the same Hamachi network, the host gives their machine's Hamachi IPv4 address to the players.
 * 8) Each player connects using this IP as per the usual Minecraft multiplayer screen.

Configuring the Minecraft server

 * 1) Configure the server by editing the server.properties file, the format for which is explained here. Be certain to edit the file with a text editor that does not add formatting (e.g., for italics). Additional configuration may not be necessary as many servers run fine from the default values.
 * 2) Add your username to the admin.txt and/or ops.txt (newer Minecraft versions may not have an admin.txt file).
 * 3) * Ops.txt and admin.txt determine who may execute server commands. In other words, operator ("op") privileges allow you to control certain aspects of the game (e.g., teleporting players).
 * 4) * Op privileges may also be granted from the server GUI: type "op " and it will automatically add to the ops.txt file.

Connect to the Minecraft server

 * If you are playing on the same machine on which the server is running, select the "Multiplayer" option in the game client, click direct connect, and then type in "localhost" instead of an IP address.
 * Both hosting and playing on the same machine is not a recommended practice unless you have a powerful computer (e.g. more than 6 gigabytes of ram (5 for the server, 1 for the client, and remainder for system).
 * Users within your local network (i.e. that are accessing the same router) can connect using your internal IP address - port forwarding is not required for such local connections. The internal IP address of a specific network adapter can be found by typing "ipconfig" into command prompt and looking for the ipv4 address.
 * People connecting from the Internet (i.e., outside of your local network) must connect using your external IP address. You must port forward for someone outside your network to connect to the server.

IP address notes

 * Unless you set a static IP for the computer that is hosting the game, the internal IP address can change. This affects port forwarding rules, and can make them invalid. Each modem or router has a different way of setting a static IP address. You should refer to the manual for your device(s) or online documentation for further instruction.
 * If you are having players connect to your external IP, your external IP can change if you do not have a static IP from your internet service provider. Use a tool such as MyWANIP to periodically check on the external IP address. You may also search "my ip address" on Google and it will show your IP address. Alternatively, you can look into a DNS service that will allow you to have a name, rather than an IP address, that will remain the same. The name will point to your external IP address, regardless of whether or not it changes (the DNS is updated when changes occur).

Firewalling, NATs and external IP addresses

 * You must open the TCP port (default is 25565) 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 (these three make up what people call port mapping/forwarding), 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 (v0.30) servers.

A common problem for server administrators is the inability to connect to your own server via another machine on your local network. A typical scenario for this is that you have a Classic server running on a dedicated machine, and you have your own machine which you play on. They're both connected to the same router/switch, and have internal IP's with the octets '192.168.x.x'. Normally, connecting via the URL generated for your server will result in an error message claiming that the server is offline.

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=true Example: http://www.minecraft.net/classic/play/4c3bebb1a01816acbe31c5ece1570da5?override=true

Previously, (before the 1.8 beta and website update) this was &override=true. This caused much confusion since the change was not announced by Mojang, and wasn't announced on the website applet pages either. Before the update, connecting to your own URL via the website resulted in red text under the applet window saying "If you can't connect, try this link instead." The link returned the same thing, with the &override=true affixed to the end.

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

Video/Alternative Tutorials
Here are some other tutorials on how to set up a Minecraft server:
 * Windows
 * Server Tutorial: How to Make A Vanilla Minecraft Server 1.6.4 (BeefCraft)
 * How To Make a 1.6.2 Minecraft Server on Windows
 * How to Set Up and Host a Vanilla 1.5.2 Windows Minecraft Server
 * Mac OS X
 * How To Make a 1.6.2 Minecraft Server on Mac OS X
 * How to setup a 1.3.2+ Minecraft Server on OS X
 * Alternative video tutorial on setting up a Minecraft server with Mac OS X
 * Linux
 * Linux tutorial for more advanced users
 * How to Install Minecraft Server on CentOS
 * Others
 * How to Set Up Port Forwarding 1.6.4
 * How to Port Forward any Minecraft Server (1.6.2)
 * Alternative port forwarding tutorial for Windows (with pictures)
 * Guide to setting up a server using Virtualbox.
 * Full course
 * Course: How to Make a Server

Anleitungen/Server erstellen Tutoriels/Configurer un serveur 튜토리얼/서버 설치 Создание и настройка сервера 教程/架设服务器