Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I'm trying to make a server on my computer. The problem is that I'm the only that can go in, with localhost. My friend can't. I opened ports and I think everything is done, but it don't works. Also, I saw that in settings.ini there is no server-ip like in bukkit.
What I did wrong?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
MCServer listens for connections on all available interfaces, so there's no need to specify an IP address.
Just to be sure, your friend isn't using "localhost" as the server address, right? That won't work, because his "localhost" is his machine, which doesn't have the server running; he needs to type in your computer's IP address or hostname (if available).
If you're on Windows, open command prompt and type "netstat -na" to verify that your server is indeed listening on the ports. You can also use "ipconfig /all" to find out your IP address.
If your friend is not in the same network as you are, you will need to configure your router's NAT to forward MCServer's port to your computer. I can't help you with that, because that's very specific to the model of the router.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I know, my friend is using the host I registered in No-Ip. Also, with my external Ip adress it don't work. Do hamachi work with MCServer?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
I don't see a reason why it shouldn't. Note though that I have no idea how hamachi works, but from the general description it seems that it doesn't need any support in the server.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
Now it works. It was because I was going in with my external ip and it said can't reach server. Now I go in with localhost and my friend with my external ip and it works.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
About this: would it be possible to specify the ip to listen to - for multi-ip multi-server machines?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
It definitely is possible, but is it really needed that much? It doesn't feel like a top priority to me.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
It's not 'top priority' as such, but it is a pretty essential feature if we wanted more than one server on a machine.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
07-07-2013, 01:27 AM
(This post was last modified: 07-07-2013, 01:27 AM by xoft.)
Not really - just bind to different ports, rather than different interfaces.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Having a server on the default port is very nice (even with SRV records), so I think it's still quite an important feature.