Server connection problems

Server connection problems

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Server connection problems

Post 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?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post 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.
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Does one of them use Hamachi or other VPN client? TASClient likes to send the wrong local IP sometimes.
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Post 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)
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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.
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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.)
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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?
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Post 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.
CaptainMaim
Posts: 265
Joined: 04 Sep 2005, 01:25

Post 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.
Post Reply

Return to “Help & Bugs”