I went to multiplayer and pressed "New Server" I entered the name I want it to be and the address. I pressed done but it said "hostname not available"

6 Answers 6


"New Server" doesn't create a server; it just lets you add one to the list of servers you connect to regularly.

To create a server, you have to run the server executable, "Minecraft_Server.exe" or "minecraft_server.jar". Detailed instructions can be found on the minecraft wiki if you need more help getting set up or run into performance issues. If you are running the server on the same machine as the client, you can connect to "localhost" as the server address, or your own IP address.


If you want to create a LAN server to play with your buddies connected on the same network, create a single player world, then from the pause screen, select 'Open to LAN', as pictured below.

enter image description here

  • 5
    You probably won't need the info from open port whatever. Now your friend on the same network should be able to see your server when he clicks multiplayer. Commented Oct 7, 2013 at 21:36
  • 6
    Just to clarify, this isn't the way to create an internet server, it's for a LAN server on your home network. If you're looking for an internet server, refer to Yamikuronue's answer.
    – user22078
    Commented Oct 7, 2013 at 21:50

Five steps:

  1. Open to LAN
  2. It will give you a 5-digit port number
  3. Find your IPv4 Address using ipconfig in Command prompt (search CMD in search bar)
  4. If your IP address is 123.456.7.8, and LAN is 89072, then you will combine them to make something like: 123.456.7.8:80729
  5. Use direct connect and connect to the game
  • 1
    Step 4 is key, no one else typed the entire address out like you did. Step 2 should say "port number", which is the technical networking term and the reason for using the colon.
    – Noumenon
    Commented Jul 18, 2016 at 4:31
  • 1
    Step 4 should be corrected a little bit: 1. It should be the same port number - you wrote 2 different numbers (89072 and 80729) 2. The maximum value is 65535. The TCP/IP network port number for IPv4 is an unsigned 16-bit integer, which can be no more than 65535. Also for multiplayer, we should allow our friends to join to our server as well - here is a nice post on how to setup Minecraft server and share it with friends over the internet securely How to Allow Minecraft through Firewall
    – simon
    Commented Aug 17, 2020 at 8:46

Go to your game menu and press "Open to LAN". Next, it will show your IP address. Write down the IP address, and go back to the title screen and click on multiplayer. Then, click on "Add server", name the server and then type in the IP address.


The following worked for me:

Locate your IP address by opening System Preferences > Network. Copy the IP address.

Network Preferences tab

Alternatively, find your IP address from the terminal:

 $ ifconfig | grep "inet "
    inet netmask 0xff000000
    inet netmask 0xffffff00 broadcast

Then, start single player and click "Open to LAN" from the pause menu. It will print a port number, say 51831. If your local IP address is then join the two with a :: Share this address with your friend, and ask them to connect using "Direct Connection" from the multiplayer start menu.

  • 1
    That website shows your external IP address, though. And you've provided an example of an external one.
    – wizzwizz4
    Commented Jul 2, 2019 at 21:18
  • Yeah, looks like you're right. I'm not very knowledge about networking, and forget why I wanted to make that distinction. I do remember some values I tried from the other answers did not work for me.
    – Ceasar
    Commented Jul 2, 2019 at 21:32
  • Your router forwards all IPs by default somehow, and your friend wasn't on your LAN.
    – wizzwizz4
    Commented Jul 3, 2019 at 6:28
  1. Start a Single-Player World

    The first step, if you haven’t already started one, is to create a single-player world. Pretty simple, under the “Singleplayer” tab, select “Create World” and then select your game options.

    There is no specific set of settings for your world; this will not affect your friend from later joining the game.

  2. Open to LAN

    enter image description here

    After you have started your single-player world, press “ESC” on the keyboard (for PC), and this will bring up the pause menu.

    Then, in the lower right corner, select the “Open to LAN” button, customize multiplayer options, then lastly select “Start LAN World” in the lower left corner, and a 5-digit LAN number will pop up in chat. Make sure that you remember it.

    enter image description here

  3. Find Your IPV4 Address in Settings

    How to Find your IPV4 Address Windows and MAC If you’re not sure what this is or how to find it, there are many helpful articles and videos on the web (should look something like '192.168.x.xx', numbers will vary).

  4. “Direct Connect” to Server

    Image of The Direct Connect button in Multiplayer Tab Now call up your friend, (or whatever you use to communicate with them) and have them select the “Multiplayer” option on the home screen. Next, they need to click the “Direct Connect” option on the bottom of the screen.

    After they have the Direct Connect screen open, tell them to put in your IPV4 address (with periods and everything):

    enter image description here

    When they have typed it in character by character, add a colon directly at the end of this string of characters.

    After the colon, they need to put in the LAN number you produced earlier; after you selected “Open to LAN” (There should be no spaces in between any of the numbers or characters).

    When you have completed all the steps above, tell them to select “Join Server” at the bottom, and watch the magic happen!


Often times, while attempting to play with your friends via LAN, you will be confronted with an error message that looks something like this. enter image description here This can be very annoying, as this has happened to me too many times. There are a couple of ways to try and get around this roadblock;

First of all, after you open “Direct Connect”, give it at least 45 seconds to fully load. I know, you can’t tell that it is loading due to the absence of a loading sign, however if you put in all of the information and try to join your friend’s game before the “Direct Connect” page is finished loading, it will give you an error.

Secondly, especially if you are on Windows, the firewall can play a big role in preventing you from playing with friends. Try turning off your firewall, and try this again.


Lastly, you might want to try re-installing Minecraft. The main reason why this is not working is that after you “Direct Connect” to the server, your computer pings for the host – if it finds them, great, you can join them. However, if no computer or user is found with this LAN number/IPV4 address, then you will have no luck. By re-installing Minecraft, you can restart this process.

A more detailed description of this process found here.

  • 1
    Looks like you forgot to paste an error message, you mentioned "you will be confronted with an error message that looks something like this" but I see no message. Commented Apr 7, 2020 at 17:54
  • 1
    Sorry for the mix up–I thought I had previously added but apparently not.
    – Veggies
    Commented Apr 7, 2020 at 21:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .