LUBE-networking only works on 'localhost'?
Posted: Mon May 20, 2013 2:26 pm
Hello all.
I am playing with LUBE (-sigh-) and trying to get it working right.
I am doing a test, where I have two squares - a red one and a blue one - which can be moved around with the keyboard.
Whenever a client moves it's square, it sends the new x- & y-positions to the server, which then broadcasts the new positions to the other client.
All of this seems to work (except for some "performance issues", which I guess is a question for another time).
Here's my procedures:
All on the same computer~
1. Start the server-program
2. Start two instances of the client-program
3. Connect with IP: localhost / 127.0.0.1 / <my external ip from WhatIsMyIPAddress>
4. Great success and happy times!
On two different computers~
1. Start the server-program on PC_A
2. Start one instance of the client-program on PC_A
3. Start one instance of the client-program on PC_B
4. On PC_A client-program, connecting with anything from the procedure above works
5. On PC_B client-program, connecting with anything at all, doesn't seem to work.
6. Miserable defeat!
I have tried using Hamachi between my own 2 laptops and between me and a friend. No success.
I have also tried connecting my own 2 laptops with a cross-over LAN-cable and with static IP's on the interfaces. No success.
And of course, I have tried connecting my own 2 laptops, using the local IP (DHCP; from the router).
Now my head tells me, that it's not a problem with my router/firewall (since I couldn't even connect between cross-over LAN-cable). But that might just be way off.
Am I just using LUBE entirely wrong?
I hope to get some clarification on this, as it would be really cool to do some multiplayer projects!
Cheers,
Ragerin
I have attached my .love-files for the server and the client.

I am playing with LUBE (-sigh-) and trying to get it working right.
I am doing a test, where I have two squares - a red one and a blue one - which can be moved around with the keyboard.
Whenever a client moves it's square, it sends the new x- & y-positions to the server, which then broadcasts the new positions to the other client.
All of this seems to work (except for some "performance issues", which I guess is a question for another time).
Here's my procedures:
All on the same computer~
1. Start the server-program
2. Start two instances of the client-program
3. Connect with IP: localhost / 127.0.0.1 / <my external ip from WhatIsMyIPAddress>
4. Great success and happy times!
On two different computers~
1. Start the server-program on PC_A
2. Start one instance of the client-program on PC_A
3. Start one instance of the client-program on PC_B
4. On PC_A client-program, connecting with anything from the procedure above works
5. On PC_B client-program, connecting with anything at all, doesn't seem to work.
6. Miserable defeat!

I have tried using Hamachi between my own 2 laptops and between me and a friend. No success.
I have also tried connecting my own 2 laptops with a cross-over LAN-cable and with static IP's on the interfaces. No success.
And of course, I have tried connecting my own 2 laptops, using the local IP (DHCP; from the router).
Now my head tells me, that it's not a problem with my router/firewall (since I couldn't even connect between cross-over LAN-cable). But that might just be way off.
Am I just using LUBE entirely wrong?
I hope to get some clarification on this, as it would be really cool to do some multiplayer projects!

Cheers,
Ragerin
I have attached my .love-files for the server and the client.