Page 1 of 1

How to setup two player

PostPosted: Fri Jan 31, 2014 01:35
by DMGrier
So I have been playing mine test for like two weeks now and been enjoying. My sister came over the other day and was wondering how could me and her play in the same so we can build together? I am running Minetestc55 0.4.9 on Ubuntu 13.10, any advice is greatly appreciated.

PostPosted: Fri Jan 31, 2014 02:55
by hoodedice
I don't think you can do that unless you have two computers... Playing on two computers locally is easy to set up.

PostPosted: Fri Jan 31, 2014 03:40
by DMGrier
That is what I am talking about it setting up two computers in my house to play the same world. how could I set this up?

PostPosted: Fri Jan 31, 2014 09:38
by Pitriss
start your world from server tab and let second computer connect to your IP:<port specified in server tab>

PostPosted: Fri Jan 31, 2014 09:45
by hoodedice
You set up a local server. Do the following:

1. Install Minetest on both computers. (Capt. Obvious flies away)
2. Fire up Minetest on your host. Go to the server tab, enter your name and password, select a world like you would in singleplayer and hit start game.
3. Now, open a terminal, and type ifconfig. If that doesn't work, sudo it - though I don't think that would be necessary.
4. Check your system's local IP address depending on how it is connected to a router. If it is ethernet, then check under eth0. If it is WiFi, check under wlan0. Your local IP address will be written under 'inet addr'. It should be of the form 192.168.x.x . If it's not, it's probably your public IP address, which you don't need. See this for more info.
5. Note down this IP address, and open Minetest on your sister's PC. Now, go to the client tab, and type in the IP address that you noted, and enter 30000 for the port unless you changed your port while setting up the server.
6. Enter a different name and a password, and hit 'Connect'

EDIT: Ninja'd. Damn you pitriss!

PostPosted: Fri Jan 31, 2014 12:10
by rubenwardy
hoodedice wrote:You set up a local server. Do the following:

1. Install Minetest on both computers. (Capt. Obvious flies away)
2. Fire up Minetest on your host. Go to the server tab, enter your name and password, select a world like you would in singleplayer and hit start game.
3. Now, open a terminal, and type ifconfig. If that doesn't work, sudo it - though I don't think that would be necessary.
4. Check your system's local IP address depending on how it is connected to a router. If it is ethernet, then check under eth0. If it is WiFi, check under wlan0. Your local IP address will be written under 'inet addr'. It should be of the form 192.168.x.x . If it's not, it's probably your public IP address, which you don't need. See this for more info.
5. Note down this IP address, and open Minetest on your sister's PC. Now, go to the client tab, and type in the IP address that you noted, and enter 30000 for the port unless you changed your port while setting up the server.
6. Enter a different name and a password, and hit 'Connect'

EDIT: Ninja'd. Damn you pitriss!


Pitriss's explanation wasn't as good as yours.

PostPosted: Fri Jan 31, 2014 15:37
by DMGrier
Okay guys so I went into the server tab and I type my name and a password. Then I open terminal I type in "sudo ifconfig" and I find my IP under etho which is inet 192.168.X.XXX, I then have her go under client and type this into the address, make sure port was on 30000 and then she types in the name of her choice and the password I created.

The problem is her computer (Windows 8.1) just shows a "connecting to server" and it never loads into the game. Any ideas.

PostPosted: Fri Jan 31, 2014 16:50
by onpon4
You need to port forward if the host is connected wirelessly to a router. Look up something like "port forwarding <your router manufacturer>".

By the way, it doesn't matter as long as it worked, but you didn't need to use sudo for ifconfig, and ifconfig is actually deprecated in many GNU/Linux systems; "ip addr" is supposed to replace it.

PostPosted: Fri Jan 31, 2014 17:25
by DMGrier
Thanks about the "ip addr" did not know as I have always seen "ifconfig" used. So I am in my router settings and seems easy enough except what protocol should I use? Should I use "TCP" or "UDP" or "Both"? Now I know in Minetest I have the port set to default so "30000", but in my router settings it wants to know the "External Port" and "Internal Port", how do I find out what to put in there?

PostPosted: Fri Jan 31, 2014 17:49
by onpon4
Set both ports to 30000.

As for the protocol, I think it's UDP for Minetest; you can try each to find out for sure. Or you can just forward the port for both of them, that will be fine too.

PostPosted: Fri Jan 31, 2014 18:42
by Jordach
Minetest exclusively uses UDP as it's main network protocol, and if you have remote_media enabled, make Minetest point to /var/www/<path to datafiles>/ and enable port 80 on TCP.

PostPosted: Fri Jan 31, 2014 18:43
by DMGrier
Okay so here is what I did, for application name I set it as computer1, external port 30000 and internal port 30000, protocol Both, IP address 192.168.1.XXX and I check marked enable and saved settings. I am assuming the IP address is refering to mine which is what I put and according to Cisco website this is all I needed to do for port forwarding but it is still not working which I believe I got to be missing something. I so appreciate everyones help so far.

PostPosted: Fri Jan 31, 2014 18:53
by onpon4
That should work. Your local IP address should start with "192.168.2", though (in this last post you mentioned an IP address with the third digit being 1). Did you type the wrong address when connecting with the other Minetest client, perhaps?

Side note: you don't need to hide your local IP address (the one that begins with 192.168.2); it only identifies your computer in relation to your local network, so it doesn't tell us anything about your identity. Only your public IP address is (somewhat) personally identifying.

PostPosted: Fri Jan 31, 2014 21:04
by hoodedice
That's weird. I never had to port forward when me and my brother played on a local server. We just connected and started playing =/

Owait. Did you allow minetest as an exception in Windows Firewall? Here are the steps to do that in Windows 8.1:

1) Hit the SuperDash key (aka Windows key)
2) Type Firewall, and open it when the app comes up.
3) Tap or click on 'Allow an app or feature through Windows Firewall'.
4) Tap or click on 'Change Settings'.
5) Scroll the list and see if minetest is reported. If it is reported as accessible on private networks, you might want to either change your local network as private since that is more open for home connections. Or you could enable public connections for minetest.
6) If Minetest is not enabled in the exception list, add it using the 'Allow another app' button.
7)...?

PostPosted: Fri Jan 31, 2014 22:12
by DMGrier
Thanks everyone, I shut off Gufw in Ubuntu and connected just fine. So sorry I didn't think about the firewall.