Game Development Community

Client/Server setup.

by Markus Nuebel · in Torque Game Engine · 10/19/2004 (2:38 am) · 9 replies

Hi guys, I have posted the following on the RW boards, but since there is not much traffic and RW is nothing more than a basic torque game, I am posting this here again.
(Sorry to all guys, that hate cross-posts ;)

Hopefully one of you can help me.
------------------------

I want to test some multiplayer stuff with RW.
Unfortunately I haven't manage to setup a client/server configuration on my single machine (or do I need a real network?).

I tried to start a dedicated RW server by:

realmwars -dedicated -mission rw/data/mission/ctf_test.mis
The server starts fine and loads the mission, but when I am bringing up the Join Server GUI on a second instance of RW, I do not get any servers listed in the server list.


Then I tried to start two instances of RW. In the first one I started a game with the


Multiplayer Mission box checked and in the second instance I started the Join Server GUI. Again I did not see any servers, to connect to.

Can someone give me a short example, on how to configure a RW server, so that I can connect to it with a second RW instance as a client?

Thanks.
-- Markus

#1
10/19/2004 (3:26 pm)
Did you get a list of games from the GG Master server? There's a button to do that, but I can't remember what it's title is.
#2
10/23/2004 (4:31 am)
Nope, nothing.

The LAN game button shows now server (but there is of course one on the same machine as the client) and the MasterServer query hangs, since my machine is not connected to the internet.

Any ideas??
#3
10/23/2004 (5:45 am)
Have you tried to manually connect via the console to your own machine?
That will work, unless your netport is closed.
#4
10/23/2004 (1:36 pm)
Sorry. Didn't realise you weren't connected to the internet. There is a way to connect either from the command line or through the console, but I can't remember the syntax. Have you asked around on IRC or searched the forums?
#5
10/23/2004 (1:47 pm)
Quote:
Multiplayer Mission box checked and in the second instance I started the Join Server GUI. Again I did not see any servers, to connect to.

This *should* work just fine, as long as you can run two instances. I use this method all the time, running one instance as a host and the other as a client, and never had a problem finding the host. The only time I ran into problems is when I buggered up my scripts, but if your scripts are the default then it should still work.
#6
10/25/2004 (10:20 pm)
I am still not able to see the server from the client on the same machine.

I debugged into the clients
processPingsAndQueries()
function and found out, that the ping broadcast of the gameping request did not succeed.

The underlying winsock send command returns an error code of 10065
WSAEHOSTUNREACH 
(10065) 
No route to host. 
A socket operation was attempted to an unreachable host. See WSAENETUNREACH

So this seems to be a problem with my network?

I am running WindowsXP Home with two network connections.
The first is my dial-up connection to my internet provider, which is not connected most of the time.

The second is a normal LAN connection bound to a network card, that has no cable plugged in.
All values for ip address, mask and gateway are entered by hand (obviously not DHCP) since I currenctly have only one machine. (It hosts the server and the client) I also added the used ip address to my etc/hosts file.

I still cannot see, why the broadcast fails and does not at least succeeds for the machine where it is issued, since I am also running the dedicated server on this machine.

Any other hints or suggestions?

Thanks.
-- Markus
#7
10/26/2004 (10:09 am)
Guys, figured out what went wrong.

I had to install the Microsoft Loopback Adapter, to make the broadast work, even when there is no cable connected to my machine.

-- Markus
#8
10/26/2004 (10:25 am)
Loopback plugs...are we in 2004 or the 1980s?
#9
10/26/2004 (2:25 pm)
Loopback 127.0.0.1?