Page 1 of 1

Server connection problems

Posted: 08 Feb 2007, 02:56
by CaptainMaim
I've got two computers, both of which can play Spring. The only problem I have is when I try to play a game between the two, both connect in the lobby, both start up Spring. And both can't find the server once they get into the game.

I've tried all 3 kinds of servers, "default" "Hole Punching" "Fixed Port". None of them worked. I even tried connecting on the public server, same result.

Neither computer has windows firewall active, or any other (to my knowledge) program that's interfering with the connection.

I've also tried hosting from both machines, no change.

I'm also using the latest version 74b3

(I'm sure it's not important but I've tried this on several mods with no effect.)


Can someone tell me what's wrong?

Posted: 08 Feb 2007, 03:04
by Peet
It sounds like your router is blocking traffic from one LAN computer to another. Try pinging the one you were using to host, from the one that was joining the game.

Posted: 08 Feb 2007, 03:19
by CaptainMaim
I'm pretty sure it'll work, one computer is running Spring off the other.

I pinged it and I even used trace route, it's just one hop and it's there.

Posted: 08 Feb 2007, 03:48
by Peet
Does one of them use Hamachi or other VPN client? TASClient likes to send the wrong local IP sometimes.

Posted: 08 Feb 2007, 05:35
by Ling_Lover
if they're on a LAN wouldnt only one of them recieve the stuff going to the external IP? and TSClient would give the external IP information?

How about trying to run your own server?
Lobby Server (Windows)

then connect over the LAN... (all of this is presuming they are on a LAN... and I don't know networks all that well :P)

Posted: 08 Feb 2007, 06:08
by CaptainMaim
Uh... Actually I was running my own server to begin with, and yes they're on a LAN. I only switched to the public server to test to see if it was my server or something else. Since it's something else (for all the things I tried), I decided to post it here.

The IP addresses my server spits back at me are correct for the two machines involved.

Posted: 08 Feb 2007, 07:27
by CaptainMaim
OKay, I know what's happening... As soon as I start the game the server prints this message: "Socket disconnected - killing client"

So how do I solve this?

Edit: (If I try to start two games so that each computer is hosting it's own game [same server], everything's fine. But that sorta defeats the purpose of multiplayer.)

Posted: 10 Feb 2007, 10:07
by CaptainMaim
Okay, I reinstalled windows XP on both computers, they still can't connect to the server after the game starts. Please, does anyone have an idea of what's going on?

I've even isolated both computers so they were the only ones on the network. Nothing changed.

So, maybe I should be asking, what does Spring look for when it's looking for the server after the game's loaded up?

Cause the two player names I get when I get into the game, stay red. It says "ready" nearby like it's a choose your start point game, even if it's not.

The scene is the same on both computers, the only difference is one loads up like 5 seconds faster than the other.

This also happens on older versions of Spring.... Anyone know how to get a list of used port numbers or something like that? Or what ports does Spring use to communicate with?

Posted: 10 Feb 2007, 12:16
by Betalord
If I understand this right, the lobby server prints out the "Socket disconnected - killing client" message, when you launch the game from the lobby? For which client exactly (the one hosting or the other one)?

Also, check your script.txt on both computers and see if the IPs are OK.

Posted: 10 Feb 2007, 22:30
by CaptainMaim
Um... Does it matter if both computers are running off the same copy? Cause I've only got "Localhost" for the IP.


<tests>

Okay each computer says it's the host. One by IP one by "localhost" (That is after I started using two copies. Still coming from the same machine.)


<A little later>

I reinstalled all the drivers on one computer (specifically the network drives) and, to my delight, it worked! Okay nevermind, I've got the game connecting and working now.