How to setup minecraft server on a mac – Part 3: Setup Internet Client


This is the third part of a three part series on how to setup a multiplayer server on a Mac.

Part 1: Setup Server
Part 2: Setup Local Client
Part 3: Setup Internet Client

Part 3: Setup Internet Client

With our server setup (Part 1), and proof that we can connect to it locally (Part 2), we are now ready to share our server with the rest of the world (Part 3).

There are three things we need to do before the world can connect to our server.

1. Setup port forwarding.

2. Turn off our firewall.

3. Connect.

Before following these instructions please note that running server software on your computer without a clear understanding of what you are doing may seriously harm your system and lead to vulnerabilities.

Step 1: Setup port forwarding

If others are going to connect to your server, they are going to need an address on where to connect to. Port forwarding enables your kids friends to directly connect to your computer by forwarding the data on through your wifi router (which masks it) to your computer.

Download Port Map.


Unzip it, install it, and run it. When you do you will see something as follows (ignore the minecraft line entry for now).

Screen Shot 2013-12-15 at 5.24.29 PM

What you are seeing here is how your computer looks within your network (that’s the internal LAN IP address) and then how it looks external to the outside world (in this case the numbers with the 68.x.x.x.

What we want to do is give your friends the external IP address (68.x.x.x) along with the port number they can connect to (25565 by default for minecraft).

We are going to give them this information


which they can then use to connect to us. But before we do we need to do what’s called port forwarding on your server (computer). That means if any network traffic comes in on this external ports, they will be forward to your internal server. It maps the external traffic internally, and vice-versa.

To setup port forwarding on your mac server, hit the ‘+’ sign in Port Map, and then enter the following data:


After that your Port Map configuration should look something like this:


Step 2: Turn off your firewall

For others to connect to your server you need to poke holes in, or turn off, your firewall.

Open System Preferences -> Security


Click the ‘Firewall’ tab, then hit the lock at the bottom, enter you account password, turn off, and then save changes.


Step 3: Connect

Go back to Port Map and write down these numbers depending on whether you are connecting via local wifi or internet:



For your friends who are on your wifi, gave them the same information we used to Part 2 when connecting locally.

Have your friends fireup the minecraft client and ‘Directly Connect’ replacing the numbers below with your own as follows:


This is for friends who are sitting beside on you your local wifi.



This is for your friends who aren’t nearby, who want to connect from their homes.


Note: Public port number may be different than local.



And this is for you to connect to your own server locally. (or localhost) means connect to my own machine.


Voila! If all goes well you should see a screen that looks like this:


How to setup minecraft server on a mac – Part 1: Setup Server


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

chmod a+x

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


Rich-text-format error

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.

Coming soon.

Part 2: Setup Local Client
Part 3: Setup Internal Client

%d bloggers like this: