1

I am on a mac and I just finished my Minecraft server. I would like to log into it, but when I go to direct connect and type in *:25565 it just says "Unknown Host".

5
  • Where is this server located? If it's being hosted on the same machine as the one you're trying to log into, you should replace "*" with localhost. If it's elsewhere, you need to identify the IP/hostname of the machine it is running on and replace * with that. Commented Jan 19, 2015 at 18:10
  • It is on the same machine and the server folder is on my desktop.
    – Seldom
    Commented Jan 19, 2015 at 18:11
  • with localhost:25565 it said "java.net.ConnectExeption:Connection refused
    – Seldom
    Commented Jan 19, 2015 at 18:13
  • how do i identify the hostname or Ip of my mac
    – Seldom
    Commented Jan 19, 2015 at 18:14
  • Where are you hosting your server? If you are running directly from your Mac, localhost should work. Your IP is located at System Preferences -> Network. The IP should start with either 10.68 or 192.168
    – RetroCraft
    Commented Jan 20, 2015 at 2:31

1 Answer 1

3

The default port that Minecraft runs on is 25565 and the client assumes that port when connecting if none is listed. Since the server is running on the same machine as the client, you can connect to the server by typing the following in the field

localhost

If you want to connect to the server from a different machine, you should replace localhost with the ip address or hostname of the appropriate server. If Minecraft is running on a port other than 25565, connect with the following

localhost:<port>

You can identify the ip address of a mac by going to the command prompt and typing ifconfig

7
  • where do i find the command prompt? i just did a spotlight search and nothing came up
    – Seldom
    Commented Jan 19, 2015 at 18:17
  • It might be called "terminal". Commented Jan 19, 2015 at 18:17
  • i used that and tons of stuff came up. what will it look like?
    – Seldom
    Commented Jan 19, 2015 at 18:20
  • Most likely under your eth0 connection (this might vary depending on how your computer is configured). Look for the inet addr, which will be a short string of numbers. Something like 192.168.0.11 Commented Jan 19, 2015 at 18:23
  • it does not show that
    – Seldom
    Commented Jan 19, 2015 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.