jueyunqi / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

Clients SOMETIMES dont receive messages - and thus cannot connect. #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I start the server (it's behind router, but port is forwarded, and people 
can generally connect to it. I do not believe this is the issue since i receive 
their messages and connect requests)
2. People try to connect with client apps from different PCs (they are 
NetPeers, started and connect is sent from them to my public static IP to 
forwarded port) (they are all on Windows 7 or XP)

What is the expected output? What do you see instead?

Most of the time they can connect well (and programs then work great) but 
sometimes, from some of them (even when other people are connected and work 
well, and other clients who work well keep connecting):
I receive their connection request (ConnectRespond is outputed) but they do not 
receive ConnectionEstablish (or any other message i send to them from server, 
even unconnected type). So, their applications (i call them clientapps, they 
are NetPeers, i do not see any big difference?) can send messages to me, but do 
not see my resposnes. And the wierd part is - i started another server on 
another port/socket so they can connect to it afterwards, just to see if 
connecting is possible. And they DO get reply, and then (after restarting 
programs) they can connect to server just fine??

What version of the product are you using? On what operating system?
gen3 is used (not the latest update, updating didn't fix error, so i got back 
to this version i have, so i dont have to send new apps to all), I am on WinXP.

Please provide any additional information below.

I googled for 3 days, reading all about this, but i cannot find any 
explanation. I thought it might be because some of them are behind NATs, but it 
is not the case, the situations is the same with some who are not. And the 
weirdest part is this that it doesn't always happen the same way, sometimes 
they connect successfully on first attempt, sometimes after this reconnect and 
second server check i described, and sometimes - they can never connect. Please 
help, it's driving me insane....

Original issue reported on code.google.com by LukaTili...@gmail.com on 12 Mar 2012 at 5:36

GoogleCodeExporter commented 9 years ago
It appears it WAS all about the router my server is behind, disregarding port 
forwarding. I connected my server directly to internet, and now it seams it 
works perfectly. I will check for next day or two, and if all is well - you can 
delete this, if you think no one will need this info i gave :)

Original comment by LukaTili...@gmail.com on 13 Mar 2012 at 6:54

GoogleCodeExporter commented 9 years ago

Original comment by lidg...@gmail.com on 22 Mar 2012 at 3:56