Page 1 of 1

Need help please

PostPosted: Mon Dec 13, 2004 6:11 pm
by troky
Hi all,

I am trying to setup GIT for playing LAN games accross different netwoks but it doesn't work well. Here is situation

PC1:
XP, GIT client
LAN: 192.168.51.0/24
IP: 192.168.51.4
connected to router1 (192.168.51.1, 10.51.20.1)
GIT alternate source IP 192.168.51.4 to 10.51.20.1
GIT connects to 10.51.20.80

PC2:
XP, GIT server
LAN: 192.168.0.0/24
IP: 192.168.0.3
connected to router2 (192.168.0.1, 10.51.20.80)
GIT alternate source IP 192.168.0.3 to 10.51.20.80

- router1 and router2 are connected in WLAN
- on both routers we did port forwarding to local PCs
- PC2 is hosting game

GIT connection is working fine and broadcast packets are forwarded and both players can see each other in game server list.
But, when one player (PC1) tries to initiate connecton (start game) it fails.
Network sniffer on PC1 says that game tries to connect to 192.168.0.3 (which is local address of PC2) instead to connect to 10.51.20.80.

It seems that GIT doesn't alter source ip properly... or I did something wrong?

Can someone help me?

Thanks,

Troky

PostPosted: Tue Dec 14, 2004 2:26 am
by olejr
Try not to alter source IP. Hardly ever needed...

And I also think that your netsniffer on PC1 is "sniffing" the packets
before it reaches GIT.. Someone correct me if I'm wrong..

PostPosted: Tue Dec 14, 2004 3:35 am
by troky
olejr wrote:And I also think that your netsniffer on PC1 is "sniffing" the packets
before it reaches GIT.. Someone correct me if I'm wrong..


I used NetPeeker to see what ports are open and what communication is going on... PC1 is trying to connect do localc address of PC2 (192.168.0.3).
:( :(

PostPosted: Tue Dec 14, 2004 3:47 am
by olejr
It's supposed to connect to the local IP...
Try without "alter source IP"..

PostPosted: Tue Dec 14, 2004 4:36 am
by troky
olejr wrote:It's supposed to connect to the local IP...
Try without "alter source IP"..


Now I am totally confused! :?

How can PC1 (192.168.51.4/24) connect to 192.168.0.3/24? They are on different subnets and packets go through 2 routers... or all game traffic shoud go through GIT?
BTW... brodacasting is on port 1108 (UDP) and communication is on port 1107 (TCP).

Troky

Re: Need help please

PostPosted: Tue Dec 14, 2004 4:46 am
by olejr
troky wrote:
GIT connection is working fine and broadcast packets are forwarded and both players can see each other in game server list.
But, when one player (PC1) tries to initiate connecton (start game) it fails.
Network sniffer on PC1 says that game tries to connect to 192.168.0.3 (which is local address of PC2) instead to connect to 10.51.20.80.

Well I just reread this part of your post..
You say that broadcast is forwarded and players see each other.
Then, when starting the game it try to connect to the "right" address.
(Where the server is running)

PostPosted: Tue Dec 14, 2004 10:52 am
by troky
Still doesn't work.
It seems that UDP packets are forwarded ok, but not TCP or ICMP.
In config I even entered to forward ALL ports except GIT (213), and still nothing.

btw, I am using GIT 0.99b3 and winpcap 3.0.

Troky

PostPosted: Sun Jan 23, 2005 6:18 pm
by Matrix_D
Just a thought but don't your lans need to be on the same subnet mask?
Like you should both be 192.168.0.X or both 192.168.51.X not either or.

Just a thought, and never hurts to try.