Jump to content
s3z

Taking long to connect to server?

Recommended Posts

Hello folks,
recently we noticed that the time needed to connect to our avorion server is oddly high.
Once it is connected however, the loading of game data is at normal speed an also gameplay is fine.
Is there anything special I can look into inside the server config?
Server is running headless on v1.2 on a ubuntu server
 
Greetings

Share this post


Link to post
Share on other sites

My first guess is to make sure both UDP and TCP ports on all of the right numbers are open in the router. I believe that Avorion will fallback to pure TCP over the game port, but the game is probably trying other options and eventually falling back to that. I have TCP and UDP open to 27000, 27003, 27020, & 27021 for reference. I'm pretty sure those don't all have to be both TCP and UDP, but I know in my case that the extra protocols aren't going to hurt.

Share this post


Link to post
Share on other sites

Thanks for the tips regarding ports!

After checking for ports, I noticed that the server is running on the custom port specified in the server.ini, however when I add the server to the list in "Join server via IP", the automatically selected Port ist 27003, which is not the port I specified.

netstat on the server only shows my specified ports being active. But I can connect and play via this port.

On the other hand, when I add the server with <ip>:<specified port>, the server is listed as unreachable and I cant connect to it.

 

Is there any other place where I can configure ports? What am I missing here?

Share this post


Link to post
Share on other sites

I have checked all relevant ports and opened them in the firewall

Allowed following ports:

To                         Action      From
--                         ------      ----
27000/udp                  ALLOW       Anywhere                   # Avorion Game
27000/tcp                  ALLOW       Anywhere                   # Avorion Game
27003/udp                  ALLOW       Anywhere                   # Avorion Game
27020:27021/udp            ALLOW       Anywhere                   # Avorion Game

27000/udp (v6)             ALLOW       Anywhere (v6)              # Avorion Game
27000/tcp (v6)             ALLOW       Anywhere (v6)              # Avorion Game
27003/udp (v6)             ALLOW       Anywhere (v6)              # Avorion Game
27020:27021/udp (v6)       ALLOW       Anywhere (v6)              # Avorion Game

 

 

This the serverlog when a player connects:

2020-10-11 16-36-19| Server startup complete.
2020-10-11 16-36-19| Starting thread [Server Listening]...
2020-10-11 16-36-19| Started thread [Server Listening] with id xxxxxxxxxxxxxxx
2020-10-11 16-36-19| Starting thread [UDP Connection Receive]...
2020-10-11 16-36-19| Started thread [UDP Connection Receive] with id xxxxxxxxxxxxxxx
2020-10-11 16-36-19| Starting thread [UDP Connection Receive]...
2020-10-11 16-36-19| Started thread [UDP Connection Receive] with id xxxxxxxxxxxxxxx
2020-10-11 16-36-19| Starting thread [HangDetector]...
2020-10-11 16-36-19| Started thread [HangDetector] with id xxxxxxxxxxxxxxx
2020-10-11 16-42-22| Starting thread [TCP Connection Receive]...
2020-10-11 16-42-22| Started thread [TCP Connection Receive] with id xxxxxxxxxxxxxxx
2020-10-11 16-42-22| Starting thread [TCP Connection Send]...
2020-10-11 16-42-22| Started thread [TCP Connection Send] with id xxxxxxxxxxxxxxx
2020-10-11 16-42-22| Starting thread [Communicator Sending WorkerPool Thread 0]...
2020-10-11 16-42-22| Started thread [Communicator Sending WorkerPool Thread 0] with id xxxxxxxxxxxxxxx
2020-10-11 16-42-22| Starting thread [Communicator Networking WorkerPool Thread 0]...
2020-10-11 16-42-22| Started thread [Communicator Networking WorkerPool Thread 0] with id xxxxxxxxxxxxxxx
2020-10-11 16-42-22| Connection to client established
2020-10-11 16-42-27| SectorDatabase: Loading Sector (182:-10)
2020-10-11 16-42-27| <Server> Player Playername joined the galaxy
2020-10-11 16-42-27| Player logged in: Playername, index: 1
2020-10-11 16-42-27| [ Login: 1094.68 ms; 100% ]
2020-10-11 16-42-27|   [ init communicator: 1089.73 ms; 99.5% ]
2020-10-11 16-42-27|   [ onPlayerLogin callback: 4.894 ms; 0.4% ]
2020-10-11 16-42-27|   [ broadcast server info: 0.008 ms; 0% ]
2020-10-11 16-42-27|
2020-10-11 16-42-27| Server frame took over 1 second.

 

Occasionally there is also something liste like, "remote cant communicate via UDP, falling back to TCP"

Edited by s3z

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...