The_Great_Sephiroth
Refugee
I have never had an issue with 7 Days and people connecting to either me hosting (Steam Networking I assume) or my dedicated servers (Steam Networking is disabled by default and ports are forwarded). Recently I have seen a lot of complaints about users crashing servers and talk of disabling the Steam stuff or LiteNetLib stuff. Nowhere are these explained. I understand what Steam networking is. It tunnels the UDP game data over TCP. What is LiteNetLib? What would happen if I disabled both on a dedicated server? Is there some plain UDP networking built into Unity/7 Days which would work or do I need one or the other?
For those with dedicated servers who want to know how to disable these, you edit "serverconfig.xml" in Notepad or Wordpad (nano or vi/vim in Linux/Unix) and find the lines near the top.
The port specifies the listening port. This is a two-pronged port. The base port (26900 here) is TCP, but you also need to forward 26900-26903 (four total ports) as UDP. This means you should only forward TCP 26900, but you should forward UDP 26900-26903.
Leave the visibility alone or read up on it. If you change it and your server cannot be joined, you were warned.
The "ServerDisabledNetworkProtocols" is what disables the subject of this topic. Dedicated servers should always disabled the SteamNetworking protocol. If you have Steam networking enabled, expect server problems.
The last option here is for players to download worlds they do not have yet. 512KiB/s is the default and around 1024KiB/s should be the max. I believe it caps out around 1300KiB/s even if you set it higher. Remember, this is PER USER. If you have ten users downloading at once, that would require your server to have 5120KiB/s upload speed.
So what is LiteNetLib and why would we disable it?
For those with dedicated servers who want to know how to disable these, you edit "serverconfig.xml" in Notepad or Wordpad (nano or vi/vim in Linux/Unix) and find the lines near the top.
Code:
<!-- Networking -->
<property name="ServerPort" value="26900"/>
<property name="ServerVisibility" value="2"/>
<property name="ServerDisabledNetworkProtocols" value="SteamNetworking"/>
<property name="ServerMaxWorldTransferSpeedKiBs" value="512"/>
The port specifies the listening port. This is a two-pronged port. The base port (26900 here) is TCP, but you also need to forward 26900-26903 (four total ports) as UDP. This means you should only forward TCP 26900, but you should forward UDP 26900-26903.
Leave the visibility alone or read up on it. If you change it and your server cannot be joined, you were warned.
The "ServerDisabledNetworkProtocols" is what disables the subject of this topic. Dedicated servers should always disabled the SteamNetworking protocol. If you have Steam networking enabled, expect server problems.
The last option here is for players to download worlds they do not have yet. 512KiB/s is the default and around 1024KiB/s should be the max. I believe it caps out around 1300KiB/s even if you set it higher. Remember, this is PER USER. If you have ten users downloading at once, that would require your server to have 5120KiB/s upload speed.
So what is LiteNetLib and why would we disable it?