These instructions are based on the official mac instructions at minecraft site.
If you don’t need much help, go there. But if you like pictures, start here.
This is the first part of a three part tutorial:
- Part 1: Setup Server
- Part 2: Setup Local Client
- Part 3: Setup Internet Client
Part 1: Setup Server
Download the minecraft server jar file.
Create a directory called ‘server’ and drag the jar file in there.
Make a command file
To make it easy to start your server, we are going to create a ‘start.command’ file. Double clicking this file will launch your server.
Open TextEdit (/Applications/TextEdit).
Set the format to plain text.
Copy in the following text.
cd "$(dirname "$0")"
exec java -Xmx1G -Xms1G -jar minecraft_server.jar
Be sure to change the minecraft_server.jar to match the name of the jar in the directory (in my case minecraft_server.1.7.4.jar).
Save it in the same directory as your jar file.
Make this command executable by opening a terminal (/Applications/Terminal) and typing
with a space after it. Drag and drop the start.command file into the terminal window and then press enter.
Double click the start server to start the server.
If all works a new server window will open and you will see several errors about missing files and directories – don’t worry this is fine.
Congrats! You’ve setup the server. Next we are going to configure Time Capsule so your server runs for everyone on your network.
If you ran into problems, check this troubleshooting section for fixes.
Troubleshooting server setup
Unable to access jarfile error
If you got ‘Unable to access jarfile’ when double clicking the start.command file,
the filename in your start.command file doesn’t match the jar file name on disk.
Fix this by opening the start.command file
and changing the filename to be correct (make sure you get the numbers, in my case, 1.7.4 included in the file name).
If your text file keeps wanting to rename itself start.rtf, it’s because you haven’t made the text file ‘plain text format’. Go over the instructions again above, and make this file plain text format.
Configure Time Capsule
Before any clients can connect to our server, we need to configure Time Capsule to keep a static local IP address, and tell it what port number our server is going to be running on.
You may need your mom or dad for this step (because it will require Time Capsule password).
Open System Preferences > Network
Click the advanced button in the lower right hand corner. And then the ‘TCP/IP’ tab.
Where it says Configure IPv4, change that option to ‘Using DHCP with manual address’.
Change the IP address to 10.0.1.x, where x can be any number from 1 to 100.
Note the address you type here: 10.0.1.x. You are going to need it later when we setup the Airport Utility
Hit OK and go back to ‘System Preferences.
You may need to save your changes before leaving the ‘Network’ preferences first. That’s OK.
Now go to the ‘Sharing’ section of System Preferences and make sure that Internet Sharing is on.
Do this by first clicking on ‘USB Ethernet’
And then double clicking ‘Internet Sharing’ on the left hand side. When it asks you if you really want to enable Internet Sharing say ‘OK’.
Now, open up AirPort Utility and edit your Time Capsule settings.
Click the Time Capsule image and then the ‘Edit’ button in the lower right.
Go under Network and make sure the option Router Mode is set to DHCP and NAT. Now, click the + button under the Port Settings.
Type in the following:
- Description: Minecraft Server (or whatever you want to call it)
- Private IP Address: The address you chose for the 4th step.
Change everything with the word port in it to 25565.
It should look something like this now.
Now hit ‘Update’ and update the Time Capsule.
OK. At this point you should be good.
You have a server.
You have a router that knows about your server and won’t try to change your IP address.
Next we are going to setup the local client.
And then after that the internet client.
Part 2: Setup Local Client
Part 3: Setup Internal Client