Start a Minecraft server and play with your friends over the Internet or a LAN

Setting up a Minecraft server on your home Windows computer is fairly easy. With basic knowledge of computers and networking, you can be playing with friends over a local area network (LAN) or the Internet in minutes. Just make sure your computer is up to the task. You should have at least a 2ghz dual-core processor (CPU), 2 gigabytes of memory (RAM), and a fast Internet connection (if your friends are connecting via the Internet). Not sure if it'll work? The only way to know for sure is to give it a try! So read on.
Step 1: Download Minecraft Server
Download Minecraft_Server.exe from the official Minecraft server page at www.minecraft.net/download. Put it in a folder somewhere and double-click it. It'll launch the server application and create a bunch of files inside of the folder it's in. A new Minecraft world is created automatically.
The server is controlled using server commands that you enter in the text input field. Click here for a list of server commands and familiarize yourself with them. At the very least, know how to use stop, which safely closes down the server and saves the world.

Step 2: Connect to Your Server
Open your regular Minecraft game, log in, and click on Multiplayer. There are three ways to connect to your server:
On the same computer
If you're playing Minecraft on the same computer as the Minecraft server, connect to 127.0.0.1:

On another computer in the network
If you're on another computer in the local network, connect to the local IP address of the computer that's running the server. To find this, go to the computer that's running the server and type ipconfig into a command prompt. The IP address should look similar to 192.168.1.xxx. Mine is 192.168.1.2 for my main PC on my home network. For example, if I have Minecraft server running on my main PC and wanted to connect to it from another PC in my local network, I would type that IP address in:

Over the Internet
To connect to the Minecraft server over the Internet, you'll need to know the external IP address, which you can find at www.whatismyip.com. Just like the local IP address, it will be 4 sets of numbers separated by periods. It may look something like 65.214.224.57.
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 correct PC (even if you only have one).
Port forwarding is something your router does so that it sends the right type of traffic to the right computer. For example, Minecraft uses port 25565. The router needs to be manually setup to send any traffic on port 25565 to the computer that has the Minecraft server.
Go to www.portforward.com, scroll down and select your router model. The model number is usually listed on the front or back of your router. If you are shown an advertisement for a port forwarding program, click "skip this advertisement" at the top.
Next, select the game you want to port forward for, which is "Minecraft Server" in this case. It may tell you that you need a static IP 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 usually stays the same but can sometimes change. So you may have to update the settings if you were to disconnect the computer from the router or shut it down. 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. Be sure to check for port 25565 (80 is the default port for website traffic). 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. Each time you start your server, be sure to double-check your internal and external IP address, and update settings accordingly.
Now that your Minecraft server is properly setup, you can send your external IP address to your friends and have them connect to your Minecraft server over the Internet:

Related articles:
| Tags | minecraft server |
|---|
Comment on this post
Legacy Comments (20)
no name | September 23, 2011 | 11:28 PM PST
BEST GAME EVEEEEER! if you want minecraft for free the THE REAL GAME LIGAL you just... you need to know somone wath hawe baught the game then you logg in at minecraft.net whit hes acount and DOWNLOAD 1.8 update able! if you hawe baught the game then you can download it at EVERY computer in the in the world!!! you maybe already known this but thx 4 reading XD
Ruzz13 | August 7, 2011 | 2:41 AM PST
You must buy Minecraft to make your user premium.
=_=
=_=
Mordoc | May 21, 2011 | 7:23 AM PST
ca me met user not prenium
Help pleaze :(
Help pleaze :(
Nick | May 19, 2011 | 10:04 AM PST
If the server is running on the same computer that you're trying to play Minecraft on, you can use 127.0.0.1 for the URL.
lizardpocher | May 19, 2011 | 5:38 AM PST
dude i need to know how to connect to the server i made. it asks for a url and i dont know where to get the url???
poooo | May 13, 2011 | 12:34 PM PST
pooo
jakub | May 10, 2011 | 7:35 AM PST
hello
BENI | May 8, 2011 | 12:16 PM PST
I hop all of you join my server see you then
beni | May 8, 2011 | 12:14 PM PST
i hop all of you will join my server see you then
Josh | April 23, 2011 | 7:01 AM PST
same here all it says is user not premium
Josh | April 23, 2011 | 7:00 AM PST
same here all it says is user not premium
Quavin | April 12, 2011 | 7:19 PM PST
If it says user not premium go to your server properties and right click, choose open with(drop down menu should open), select notepad. You should see a couple lines of text find the line that says online-mode=true. Delete where it says true and type in "false". Then save it, close everything open on your desktop(absolutely everything), then open it all back up and start the server and you should be able to connect.
wulff | June 11, 2011 | 1:29 PM PST
how do u do that?? sever properites?? plz tell me
Nick | June 12, 2011 | 12:22 AM PST
In the same folder as "Minecraft_Server.exe", a file called "server.properties" should exist. Open it in notepad.
the fktard | April 9, 2011 | 2:18 PM PST
MINECRAFT IS FKING AWESOME
edouard8 | March 31, 2011 | 11:23 AM PST
comeon dude comeon man nice fail or epic fail
alexander | November 18, 2011 | 11:28 PM PST
you my friends
edouard8 | March 31, 2011 | 11:22 AM PST
lol
Nick | March 21, 2011 | 1:02 PM PST
You have to have purchased the game and made sure that your account is good to go. Can you connect to online SMP servers? Are you able to log in when you start the game or do you play in offline mode? (this won't work in offline mode, even if the server is on the same computer)
Patrick | March 21, 2011 | 12:57 PM PST
Hi, um, I tried this but Minecraft said "User not premium".
What should I do now?
What should I do now?
