Connection To Server Failed

Verrix

Refugee
Summary: I cannot connect to a server that I previously played on A18, A17 and other previous versions. The server connection always times out. I have tried connecting to other servers, which all have the same issue now (since moving to A19).

Game Version: A19 b180

Platform: PC

OS/Version: Windows 10

CPU Model: AMD FX-8350  Eight Core  4.0 GHz

System Memory: 32 GB

GPU Model and VRAM: Radeon RX 480  8 GB

Screen Resolution: (width and height)

Video Settings: High

Game mode: Client connecting to dedicated server

Did you wipe old saves? Yes

Did you start a new game? Yes

Did you validate your files? Yes

Are you using any mods? No

EAC on or off? On, same as server settings require

Status: NEW

Bug Description:

2020-08-22T07:23:31 16.142 INF [Steamworks.NET] Login ok.
2020-08-22T07:23:31 16.496 INF AchievementManager: Received stats and achievements from Steam
2020-08-22T07:25:02 106.781 INF Started thread ServerBrowserListUpdater
2020-08-22T07:25:03 108.381 INF Connect by IP
2020-08-22T07:25:03 108.392 INF Connecting to server 45.35.192.52:26900...
2020-08-22T07:25:03 108.402 INF NET: LiteNetLib trying to connect to: 45.35.192.52:26900
2020-08-22T07:25:03 108.403 INF Exited thread ServerBrowserListUpdater
2020-08-22T07:25:09 114.249 INF NET: LiteNetLib: Connection failed: ConnectionFailed
2020-08-22T07:25:09 114.252 INF NET: Steam NW trying to connect to: 45.35.192.52:26900
2020-08-22T07:25:09 114.253 INF [Steamworks.NET] NET: Resolving SteamID for IP 45.35.192.52:26900
2020-08-22T07:25:09 114.490 INF [Steamworks.NET] NET: Connecting to SteamID 90138149699666954
2020-08-22T07:25:09 114.494 INF Started thread SteamNetworkingClient
2020-08-22T07:25:24 129.530 INF Exited thread SteamNetworkingClient
2020-08-22T07:25:24 129.532 INF [Steamworks.NET] NET: P2PSessionConnectFail to: 90138149699666954 - Error: k_EP2PSessionErrorTimeout
2020-08-22T07:25:24 129.540 ERR [NET] Connection to server failed: Connection timed out


The important lines are the LiteNetLib trying to connect and failing. I checked with the server admin and LiteNetLib is *not* disabled in the serverconfig file.

SteamNetworking is disabled on the server, so I know I cannot connect that way.

Some other players were initially struggling to connect but we believe this was due to the server being unable to handle multiple downloading a 14K world simultaneously. I have tried connecting with 0 people on the server and still cannot get on, regardless of how populated the server is.

Other things I have tried:

  • Verified game files using Steam
  • Flushed DNS cache
  • Completely clean-installed the game for a 2nd time
  • Including removing related Registry entries and AppData files
  • Checked all relevant ports are opened in router and windows firewallimage.png


The only other noteworthy thing I can think of is that some online port-checking websites claim the above ports are 'closed' but another more advanced one instead found that they were being 'filtered', presumably for security reasons.

Any and all help is much appreciated!

 
Update: I have also turned off Firewall and temporarily disabled my antivirus program and the game still cannot connect to any servers.

 
Update 2: I can connect to other servers via SteamNetworking only. It appears that LiteNetLib is the issue here.

 
Confirmed to be having the same issue in console when connecting, if I restart my client after several attempts it eventually lets me connect but seems random at this point in time mostly ending in timeouts.  

Did you validate your files? Yes

Are you using any mods? No

EAC on or off? On

Antivirus disabled

Firewall disabled

 
Last edited by a moderator:
Checked all relevant ports are opened in router
This is only necessary if you're running a server.

Also, I tried connecting to the server shown in your logs and got the same error. I can connect to

other servers without any issues.

It doesn't respond to a ping and a tracert fails. Indications are that that server is not working right,

or it is not online.

So maybe the problem is with the server and not you. (assuming the info in your log exerpt is correct)

Maybe ask the server admin for a log file to post here.

 
Last edited by a moderator:
Here's a compilation of the connection attempts I made to the private server i play on for reference on how often the issue occurs which seems to be random. 

2020-08-25T15:48:45 35.259 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:48:50 40.533 INF NET: LiteNetLib: Connected to server

2020-08-25T15:48:35 25.136 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:48:40 30.895 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:48:24 15.124 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:48:30 20.904 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:46:23 43.521 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:46:23 43.556 INF NET: LiteNetLib: Connected to server

2020-08-25T15:46:14 33.915 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:46:19 39.680 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:46:04 24.091 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:46:10 29.858 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:45:54 14.020 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:46:00 19.803 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:44:24 76.615 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:44:24 76.649 INF NET: LiteNetLib: Connected to server

2020-08-25T15:44:14 66.697 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:44:20 72.469 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:44:01 53.759 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:44:07 59.533 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:43:28 21.071 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:43:34 26.861 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:42:25 14.035 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:42:31 19.822 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:40:54 12.901 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:40:54 12.953 INF NET: LiteNetLib: Connected to server

2020-08-25T15:39:56 18.256 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:39:56 18.301 INF NET: LiteNetLib: Connected to server

2020-08-25T15:38:37 13.715 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:38:38 13.766 INF NET: LiteNetLib: Connected to server

2020-08-25T15:37:34 15.524 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:37:40 21.307 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:36:27 33.290 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:36:33 39.075 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:35:04 21.891 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:35:09 27.664 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:28:19 14.659 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:28:24 19.956 INF NET: LiteNetLib: Connected to server

2020-08-25T15:26:26 14.436 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:26:32 20.221 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:21:43 18.898 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:21:49 24.700 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:19:55 22.035 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:20:01 27.813 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T15:18:57 15.418 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:18:57 15.463 INF NET: LiteNetLib: Connected to server

2020-08-25T15:03:31 50.555 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T15:03:37 56.340 INF NET: LiteNetLib: Connection failed: ConnectionFailed

2020-08-25T12:34:15 25.304 INF NET: LiteNetLib trying to connect to: 45.35.192.50:26900 2020-08-25T12:34:21 31.098 INF NET: LiteNetLib: Connection failed: ConnectionFailed

No client restart needed just reconnect attempts until it goes through,  I also sent a DM to the devs on the subreddit and made a post over there to see if anyone has any ideas on what is going on. 

 
Solved. It was a combination of being unwhitelisted (now fixed) and the IP of the server changing by 2 digits.

 
I can say that I have some background in running dedicated servers, and I've tried quite a few. I had a problem once because my server wasn't showing up in server list A17, but it was because I still had the old serverconfig.xml. After I figured this out, another issue appeared, I couldn't get the dedicated server to host a game, it was always showing "Connection timed out" or "Could not retrieve server info" but I was able to fix this after all. I don't know, maybe because I gathered experience but after I got my dedicated server from gthost.com, I didn't experience any similar issues, so I think the server makes the difference.

 
Last edited by a moderator:
Back
Top