Closed ChidaoDouyu closed 3 weeks ago
Thank you about all things! If there's no other problems I'll close this issue and delete chats unrelated to the topic. Hope you have a nice day!
I can't join the server.
Connecting
Failure to connect to server
AstroServerSettings.ini
Engine.ini
Is there any limit to the player to join the server? My steam name is Chinese.
Limit is 8 people I believe. Setting the Max Count higher will not change anything.
For the connection problems: Whast does AstroTuxLauncher tell you?
It put out nothing. Silence as I didn't join in the server.
Not as you joined the server. Did it mention any network issues when starting? Any warnings in the output?
There are 3 possible output about the port 7777.
[15:01:53] [Launcher/WARNING] The server can be reached locally, but not from outside of the local network
[15:01:53] [Launcher/WARNING] Make sure the Server Port (7777) is forwarded for UDP traffic
[15:15:33] [Launcher/WARNING] The Server is completely unreachable
[15:15:33] [Launcher/WARNING] Make sure the Server Port (7777) is forwarded for UDP traffic and check firewall settings
or
[15:06:51] [Launcher/INFO] Network configuration looks good
BUT my firewall config is correct.
did you also forward the ports in your router's settings? The server needs to be reachable poublically under the public IP and port you entered into the config files. Also, make sure NAT loopback/hairpinning/reflection (has many names) is enabled in your router's settings, or you won't be able to connect to the server from the same PC/network. Additionally, since this is running on Linux, you need to disable encryption on every client thatwants to connect to the server.
Umm, I'm trying to understand all you said. But...
Also, the server is in the server center. So I always set it by Internet. Maybe I won't need to connect to it from the save network?
I abandoned. Thank you about reply.
@ChidaoDouyu Sorry that I didn't respond sooner, I was not at home and couldn't answer.
- the linux server is from a Cloud Server Provider and it's not a separate machine. So I can't config the router of that.
Alright, I thought you hosted it locally on the same PC or in the same network. In that case, you just need the server's public IPv4 address (no IPv6 support sadly)
- As I know that NAT is also used to economize dedicated public IP? But my server has a public IP.
I did not mean NAT itself, but NAT loopback, which just means that requests to the public IP of the network are reflected back into the network. This is only required, if your game client is in the same network as your server.
- I didn't find any settings about encryption in the client. Is that set in server-side config? I truly saw a config about client config. It is as default to enforce disable encryption. But I can't join the server. So I changed it to not enforce and test.
If either the game client or the server is run using Wine on Linux, you will have to disable encryption on both the server and any client that wants to connect to the server because of something not currently working there. This is done using a config file and AstroTuxLauncher already handles this by default for the server (you need to keep it disabled).
For the client see the following guide:
Engine.ini
config file"%UserProfile%/AppData/Local/Astro/Saved/Config/WindowsNoEditor"
using either Explorer or inputting it into the "Run" prompt opened by pressing ++win+r++.
The opened folder contains the Engine.ini
config file.<Your Steam Library Path>/steamapps/compatdata/361420/pfx/drive_c/users/steamuser/AppData/Local/Astro/Saved/Config/WindowsNoEditor
while replacing Your Steam Library Path
with the path of the Steam Library that you installed Astroneer to (the default is ~/.steam/steam/steamapps
).
The opened folder contains the Engine.ini
config file.Engine.ini
config fileOpen the Engine.ini
config file in a text editor (On Windows you can simply use Notepad) and append the following text to the end of the file in a new line, ==if it is not already present==:
[SystemSettings]
net.AllowEncryption=False
If the text is already present in the config file, simply replace the False
(disabled)/True
(enabled) with the setting you want.
Then, save the file and close the text editor and folder you opened.
Now you should have successfully disabled encryption, and you can start your game/server to test it out.
In case you want to re-enable encryption, because you want to play on a server that also has encryption enabled, simply re-open the Engine.ini
config file and go to the lines you appended previously.
Then, replace the False
(disabled) with True
(enabled).
Code:
p.s. sorry, it should be correct right now
Config:
Environments:
x86_64 Debian11 wine-8.0 (Debian 8.0~repack-4) python3.11 Python Packages:
Sorry if I did anything wrong, I don't understand python and TOML a lot.
Requirement:
Thanks!