Frogboy Frogboy

SUPPORT: Solving Connectivity Problems

SUPPORT: Solving Connectivity Problems

Tips and Tricks

Most PC games are client/server. That is, someone creates a game and others join that game. The data then goes from you to the host (the server) and then back to the other players.  Sins of a Solar Empire is client/server.

In Demigod, it is peer-to-peer. This was necessary because it needed to have the least amount of latency possible since your moves are directly sent to the other players rather than to a server first.  Because the action in Demigod focuses a great deal on Melee in the third person (i.e. players can see their hits) a lot of traditional methods to mask latency aren't possible. Peer-to-peer reduces the problem of "lag".

The downside of peer-to-peer is that everyone has to be able to connect to each other. In a client server game, many people have heard someone say "I can join games but I can't host them."  In a peer-to-peer game, everyone is technically a host thus greatly increasing the challenge of connecting players.

The solution developed is known as CVP NAT, a new feature of Stardock's Impulse Reactor development library.

So what problems can people have?  Below are the most common issues:

 

  1. Windows may fail to create a local socket. There's a million reasons for this unfortunately and your options are to try to rejoin a game or try hosting the game instead. It's not terribly common but feels very common when it happens to you. It will be more common if you have an older router as we have learned that older consumer routers are more likely to be problematic when opening sockets.
     
  2. Your ISP is sending your messages with different IP addresses. This is common in Europe where people have DSL lines that have multiple IP and the router picks and chooses which IP to send things.  It can also happen for people who have multiple Internet connections going.  For instance, I have a Verizon 3G Internet connectiont that's always on. I also have a Comcast line on.  If I'm trying to play a game, turning one of these connections off will likely help.  At Stardock, we have a thornier issue -- we have 2 comcast lines in which our router picks the one with the most available bandwidth to send out a particular packet.  CVP NAT has been designed to deal with a lot of oddball issues like this but it's not infallible.
     
  3. Firewall. If youre firewall is blocking TCP or UDP packets, you won't be able to connect.
     
  4. Windows failed to configure a local socket.  This is another one of those annoying issues that can come up. It's similar to item #1.  The best way to reduce these kinds of problems is to use Skirmish or the Pantheon.  The "Custom Game" setup in Demigod is the most likely case this will come up since it requires multiple sockets to properly connect players.
TIP:
If you know what you're doing (and only if you know what you're doing) you can load a program that's in the bin directory of Demigod called ImpulseReactorOptions, set up the options there and then seperately go to your router and make sure those ports are port forwarding to the right machine.

To learn how to port forward, see this website: http://www.portforward.com/

To learn more about what ports to open see this document provided by the Monk (THANKS MONK!)

http://themonk.ca/Monk/Networking_and_DEMIGOD.pdf

 

815,540 views 331 replies
Reply #176 Top

Up untill now i still havent had a successfull connect... either i get a message: failed attempt or the connecting indefinitly issue. The only way for me to play a MP is if i use the torrented version of Demigod and play via hamachi... wich is really sad.

 

So can i expect this issue to be resolved? How many people are actually playing without problems? Is there anyone using the impulse version of the game to play via hamachi? If you do can you please post your ham network info?

Reply #177 Top

Quoting Ratsy, reply 1
Up untill now i still havent had a successfull connect... either i get a message: failed attempt or the connecting indefinitly issue. The only way for me to play a MP is if i use the torrented version of Demigod and play via hamachi... wich is really sad.

 

So can i expect this issue to be resolved? How many people are actually playing without problems? Is there anyone using the impulse version of the game to play via hamachi? If you do can you please post your ham network info?

I had the luck of playing a few games at full length. The games that played to the end usually had 1-3 players drop during the game (this is with a 3v3 conquest) with good pings. Failled attempt to connect is an issue that comes up every now and then, but I can usually connect to the lobby of the host without too many problems.

I have noticed a problem where even after I have connected to all the players even the host, it wont connect me to the lobby...I usually have to log out, log back in and re-connect and that usually fixes the problem (temporarily).

One thing which im not sure why this happends, so please educate me (and i apologize if this is a dumb question). Even after everyone is connected and were all playing the game (lets say with no lag), randomly players will drop...I understand this could be due to people quiting which I get.  However alot of people I have spoken to said they hit a lag spike and got dropped from the game.

Also this may be an issue with the game or perhaps it was just that particular one with the connectivity issue. But the host set the game mode to fast and it was incredibly choppy..it wasnt just me everyone in the game was basically playing a slide show. Im not sure if this is due to the specific mode or again due to connection issues.

I hope this helped.

Reply #180 Top

still  not able to play a game with anyone else. at least i seem to have routed the propper ports with udp. now when i try to play over at gameranger, i cause everyone else to lock up. the client starts to launch then goes black window and needs to abort

if i try to join a custom game, it says conecting to players please wait. though there is no one listed in the connection info

window. how long should one wait. at least before i tampered with the router there were a couple names not connecting with anyone

Reply #181 Top

Can't play with Impulse, with Hamachi or Gameranger. This is total bullshit. I give them until next Monday to fix this garbage, and then I am requesting a refund.

Reply #182 Top

I apologize in advance if this is old news (the thread is huge), but FYI, I Recently took my router out of the loop and fired up Zone Alarm (software firewall) so I could get notified the first time ports were used, and lo and behold, I got in incoming connection on port 6000.  While opening didn't seem to make a huge difference, I note that this port is not mentioned in the linked guide [ http://themonk.ca/Monk/Networking_and_DEMIGOD.pdf ]

Keep up the good work folks.

Reply #183 Top

erm i had a connection problem and i deleted the post when i solved it, just a little something with my modem, i still cant connect to the game though. Sorry if it was misleading.

Reply #184 Top

Still have not been able to play a single multiplayer game. Today when trying to connect to Pantheon after a few bounces back and forth between trying to find a match and the match being attempted but not completed, i was booted from a game i was attempting to join. no connectin info on the window when attempting to join a custom game. please, what can i do. when i try to get a game through gameranger i seem to prevent all others in the game from being able to play. I have a retail copy bought the week before day one. One other question, on the last patch ( the one after 1.00.0093)  that is still the version name.

Reply #185 Top

Try LAN, all ping ok (Less than 100ms) but when after the game started, in less than 3min, I start drop out. (The ping go up to 1000-3000ms)

Anyone got any idea on this? I had even close the firewall and still cannot play.

Reply #186 Top

I would think on a real wired-LAN (as in not a VPN-LAN like Hamachi etc.) your ping should be less than 30 even.   <_<

 

Anyway, check for HD activity when the ping spikes like that.  Could be a loading from drive issue, in which case we would need hardware info from you to make further suggestions.

 

Reply #187 Top

Hello everyone.

I bought this game and till now i wasnt able to play at least one match.

Im totally disappointed. Why do you release a game without being sure it works?
I haven't seen a game which had that kind of connectivity problems...
I really should try to get my money back and advise everybody not to waste money on this.

Reply #188 Top

Quoting Beaucephalus, reply 7
I apologize in advance if this is old news (the thread is huge), but FYI, I Recently took my router out of the loop and fired up Zone Alarm (software firewall) so I could get notified the first time ports were used, and lo and behold, I got in incoming connection on port 6000.  While opening didn't seem to make a huge difference, I note that this port is not mentioned in the linked guide [ http://themonk.ca/Monk/Networking_and_DEMIGOD.pdf ]

Keep up the good work folks.

I can confirm this. My router's log has the following entry even though 6100-6200 are correctly forwarded. I cleared the log just before trying to join the pantheon game too and I get the same thing every time I try to connect so its definately Demigod doing this.

home.gateway:firewall:info: 2108716.830 Blocked Prot=17, <internal IP address>:4793 > 209.124.63.249:6000 -Default Defense

 

Why is it port 4793 from my PC? And why port 6000 on the remote end?

Reply #189 Top

Quoting gerbercage, reply 10
Try LAN, all ping ok (Less than 100ms) but when after the game started, in less than 3min, I start drop out. (The ping go up to 1000-3000ms)

Anyone got any idea on this? I had even close the firewall and still cannot play.

 

 

I'm having this EXACT same problem in networked games.

 

Last night in a 3v3.

I connect and in the game chat room, I have a decent ping to all 100-150ms... Right when the game starts it jumps up to 1000-3000ms... As people cry and drop out it slides back down.

 

Game started 3k ping

1 player dropped - ping still 2500-3000

2nd player dropped ping drops to 2k

and then if finally drops back down to the 150ms range

And then later on during the game jumps back up to up over 1500... Again, I didn't see ANY of these high pings when we waited in the game lobby waiting for a 5th and 6th player to join the game.

 

It was only once the game started.  this is WICKED annoying; making it so that the game is virtually unplayable online; as I have no idea what's causing this horrible jump in lag.

 

Reply #190 Top

i got a question, if the reason behind the p2p system is latency/ping why do i have such bad ping.

i have roughly 60-70ping to those from same country (sweden/norway) and about 200ping on most from US, this is abysmal to what i normaly end up having in a p2p game. i had expected to end up with 80-140 on US and 10-60 for for people from sweden, US is pretty big so id have had 200ping before on a few of them but never all like in this game. how do i find the bottleneck if there is on and fix it.

Reply #191 Top

Okay I'm wondering what this means and what I should do.....

Often when trying to join skirmish, it shows I am connected to a bunch of players but it kicks me back to where I can hit the "fight" button.  I am still showing as connected to the players.  If I leave it at this point will the game ever start or do i have to hit fight and let it do its thing?

I have not yet connected by leaving it and I have connected by hitting "fight" again...only because it seems to purge my existing connections and it starts from scratch.

So what does this mean, why does it happen and what is the best way to react?

Reply #192 Top

Would it be possible for Stardock to add a button to the multiplayer section of the game called "Test connection".  It would be trivial for it to test if ports were forwarded, or if data was getting passed as it should.  Some clear messages about what is wrong would be excellent for figuring out if a user's setup has issues, and how to fix them.

Reply #193 Top

Here's quoting myself from another thread....

 

Of course forwarding ports is NOT necessary, the real issue is the strictness of NAT at various points of connection between people.  My guide simply makes suggestions (that if followed) will increase the probability of successful connections.  It's that simple.  Myself and my close circle of friends have all implemented whatever they could implement out of the guide (some routers simply don't have options for everything) and we've been enjoying successful gaming as a result.

I would say (for Demigod at least) the guide's instructions on relaxing NAT-filtering etc. and making sure SPI-type firewalls are disabled are the more important points and those who are able to control those settings on their routers (relaxing NAT) are enjoying the MP with friends.

Unfortunately, on many consumer-model routers there is no setting to "relax NAT-filtering" so forwarding all traffic on certain ports to the end-PC is the next best option (which is why I suggest it).

Simply put, if people:

1.  Follow the steps in the guide

2.  Tested your setup (ie.  going to http://www.grc.com  and scanning "ALL SERVICE PORTS" to make sure in fact that connections are now possible to the specified ports.

they will have minimal if no trouble at all playing custom matches with their friends provided the following:

1.  They are not half-way around the world from another

2.  and their ISP and/or ISP-supplied modem isn't performing some kind of NAT-filtering they don't have any control over.

 

the Monk

 

Obviously this isn't the optimal solution, it is however a "workable solution" while the community waits for the remaining connectivity enhancements to take place.

Anyone having issues with any/all of the steps I've suggested, please feel free to contact me via PM, xfire (the1monk) or posting here and I will be happy to continue helping.

Other than that....please continue to have patience and faith in SD/GPG.  They are constantly working on things (unlike devs like noobi-soft) and imo deserve our support!

thanks,

the Monk

 

EDITED:  to correct the link!  :)

Reply #195 Top

@The Monk: The link you posted goes to a dead-end page. There is no sort of scanner, and there is also no way to navigate away from that page.

 

Reply #197 Top

Apparently i was wrong. Still takes 10+ minutes to get a game. But at least I can get a game versus humans even if it takes forever.

Reply #198 Top

Quoting Mistralok, reply 20
@The Monk: The link you posted goes to a dead-end page. There is no sort of scanner, and there is also no way to navigate away from that page.

 

 

Again, sorry about that.  I edited the link in my post to correct it.  :)

Reply #199 Top

I have noticed a large number of packets being blocked by my software firewall "Outpost Pro 2009" I joined a game, I waited several minutes why it connected all users. It was taking forever so I pressed the cancel button and imdediatly my logs were flooded with 3 or 4 blocked packets a second. It continues until I unplug my router and wait several minutes. I have no real issues playing demigod online, I connect to games and stay connected to them. I have all the correct ports forwarded on my router and on my software firewall. Here is a sampling of what it gives me after I hit the cancel button.

 

Date/Time    Status    Dir    Prot    Source Addr        Port      Target Addr        Port
5:27:47 PM    Block    IN    UDP    98.211.32.190    3803    192.168.25.117    2922
5:27:46 PM    Block    IN    UDP    96.242.167.48    65096    192.168.25.117    2925
5:27:46 PM    Block    IN    UDP    76.177.164.52    3013    192.168.25.117    2922
5:27:46 PM    Block    IN    UDP    76.177.164.52    1080    192.168.25.117    2922
5:27:46 PM    Block    IN    UDP    91.78.42.196    64307    192.168.25.117    2922
5:27:46 PM    Block    IN    UDP    98.211.32.190    3803    192.168.25.117    2922
5:27:45 PM    Block    IN    UDP    96.242.167.48    65096    192.168.25.117    2925
5:27:45 PM    Block    IN    UDP    76.177.164.52    1080    192.168.25.117    2922
5:27:45 PM    Block    IN    UDP    76.177.164.52    3013    192.168.25.117    2922
5:27:45 PM    Block    IN    UDP    91.78.42.196    64307    192.168.25.117    2922
5:27:45 PM    Block    IN    UDP    98.211.32.190    3803    192.168.25.117    2922
5:27:44 PM    Block    IN    UDP    96.242.167.48    65096    192.168.25.117    2925
5:27:44 PM    Block    IN    UDP    76.177.164.52    1080    192.168.25.117    2922
5:27:44 PM    Block    IN    UDP    76.177.164.52    3013    192.168.25.117    2922
5:27:44 PM    Block    IN    UDP    91.78.42.196    64307    192.168.25.117    2922
5:27:44 PM    Block    IN    UDP    98.211.32.190    3803    192.168.25.117    2922
5:27:43 PM    Block    IN    UDP    76.177.164.52    1080    192.168.25.117    2922
5:27:43 PM    Block    IN    UDP    76.177.164.52    3013    192.168.25.117    2922
5:27:43 PM    Block    IN    UDP    96.242.167.48    65096    192.168.25.117    2925
5:27:43 PM    Block    IN    UDP    91.78.42.196    64307    192.168.25.117    2922
5:27:43 PM    Block    IN    UDP    98.211.32.190    3803    192.168.25.117    2922
5:27:42 PM    Block    IN    UDP    96.242.167.48    65096    192.168.25.117    2925
5:27:42 PM    Block    IN    UDP    76.177.164.52    1080    192.168.25.117    2922

 

I've also noticed traffic on 2629,58079,58080,58081,58082,58083,65096

 

**Edit** I tried again and got 2 more

6:16:30 PM    Block    IN    UDP    173.3.94.25    53359    192.168.25.117    3590      
6:16:29 PM    Block    IN    UDP    70.18.229.190    60926    192.168.25.117    3590       

Reply #200 Top

Up until now I have been able to play multiplayer even if it took a while to connect.  Now I cant really.  I keep on getting NAT facilator complaints and a new message saying that I cant find game info.  I've been trying to play for about 40 minutes now with no luck.

 

I dont really have any specific symptoms for many games as it just hangs most of the time.  So I guess I cant really add anything specific to help out the devs fix this, but I thought that I should chip in and let them know that things are NOT getting better for at least some of their customers.

 

I thought this stuff was supposed to be mostly worked out this week.  I'm starting to get pretty frustrated with this game.