t3hp0larbear
New member
I have a Dell PowerEdge R620 on a rack downstairs that I use for all sorts of stuff including a webserver that is accessible from the outside world. I'm running Ubuntu server on it and I've updated the 7 Days dedicated server to the latest version. My server and PC are all wired ethernet with no wireless bridges between them or anything.
First and foremost, I can't seem to connect via direct IP in my own subnet. The firewall (ufw) is active and I have these rules among my others:
On the first attempts I made to connect, the server would spit out a message saying "INF NET: Rejecting connection request from 192.168.0.201: Limiting connect rate from that IP!" once in the log. The client would attempt to connect but then just time out because LiteNetLib couldn't make a connection, and Steam networking was initially disabled on the server so that would time out too, with the "Couldn't get server information" message. When I set the server to public, it would appear in the server list and this time, when I attempted to connect, I would see repeated entries like this in the server log:
Eventually I enabled Steam networking in my server settings, restarted, and this time connection would work, since Steam does its own thing to facilitate connections.
After this I tried connecting to my server again via my server's local IP address. This time I was getting repeated LiteNetLib attempts logged, which wasn't happening before.
I'm stumped, and I'm not even at the level yet where port forwarding would come into play. Why is my server not receptive to straight TCP/IP connections via LiteNetLib?
First and foremost, I can't seem to connect via direct IP in my own subnet. The firewall (ufw) is active and I have these rules among my others:
Code:
sudo ufw allow 26900/tcp comment "7 Days to Die Server"
sudo ufw allow 26900:26903/udp comment "7 Days to Die Server"
To Action From
-- ------ ----
26900:26903/udp ALLOW Anywhere # 7 Days to Die Server
26900/tcp ALLOW Anywhere # 7 Days to Die Server
On the first attempts I made to connect, the server would spit out a message saying "INF NET: Rejecting connection request from 192.168.0.201: Limiting connect rate from that IP!" once in the log. The client would attempt to connect but then just time out because LiteNetLib couldn't make a connection, and Steam networking was initially disabled on the server so that would time out too, with the "Couldn't get server information" message. When I set the server to public, it would appear in the server list and this time, when I attempted to connect, I would see repeated entries like this in the server log:
Code:
2024-07-11T23:14:15 609.359 INF NET: LiteNetLib: Connect from: <my external IP address>:56908 / 0
2024-07-11T23:14:15 609.361 INF Started thread NCS_Reader_0_0
2024-07-11T23:14:15 609.361 INF Started thread NCS_Writer_0_0
2024-07-11T23:14:15 609.362 INF Started thread NCS_Reader_0_1
2024-07-11T23:14:15 609.362 INF Started thread NCS_Writer_0_1
2024-07-11T23:14:15 609.362 INF [NET] PlayerConnected EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='6'
2024-07-11T23:14:20 614.407 INF NET: LiteNetLib: Client disconnect from: <my external IP address>:56908 / 0 (Timeout)
2024-07-11T23:14:20 614.408 INF NET: LiteNetLib: TimeSinceLastPacket: 5010
2024-07-11T23:14:20 614.443 INF NET: LiteNetLib: MT: Client disconnect from: <my external IP address>:56908 / 0 (Timeout)
2024-07-11T23:14:20 614.444 INF [NET] PlayerDisconnected EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='6'
2024-07-11T23:14:20 614.444 WRN DynamicMusic: -1 was not in Bloodmoon state cache on disconnect
2024-07-11T23:14:20 614.444 INF Client disconnected from dy mesh: Id: -1 Total: 0
2024-07-11T23:14:20 614.444 INF Player disconnected: EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='6'
2024-07-11T23:14:20 614.444 INF Exited thread NCS_Reader_0_1
2024-07-11T23:14:20 614.447 INF Exited thread NCS_Writer_0_0
2024-07-11T23:14:20 614.447 INF Exited thread NCS_Writer_0_1
2024-07-11T23:14:20 614.447 INF Exited thread NCS_Reader_0_0
Eventually I enabled Steam networking in my server settings, restarted, and this time connection would work, since Steam does its own thing to facilitate connections.
After this I tried connecting to my server again via my server's local IP address. This time I was getting repeated LiteNetLib attempts logged, which wasn't happening before.
Code:
2024-07-11T23:30:15 781.758 INF NET: LiteNetLib: Connect from: 192.168.0.201:54587 / 0
2024-07-11T23:30:15 781.759 INF Started thread NCS_Reader_0_0
2024-07-11T23:30:15 781.760 INF Started thread NCS_Writer_0_0
2024-07-11T23:30:15 781.760 INF Started thread NCS_Reader_0_1
2024-07-11T23:30:15 781.760 INF Started thread NCS_Writer_0_1
2024-07-11T23:30:15 781.760 INF [NET] PlayerConnected EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='22'
2024-07-11T23:30:15 781.782 INF NET: LiteNetLib: Client disconnect from: 192.168.0.201:54587 / 0 (RemoteConnectionClose)
2024-07-11T23:30:15 781.787 INF NET: LiteNetLib: MT: Client disconnect from: 192.168.0.201:54587 / 0 (RemoteConnectionClose)
2024-07-11T23:30:15 781.787 INF [NET] PlayerDisconnected EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='22'
2024-07-11T23:30:15 781.787 WRN DynamicMusic: -1 was not in Bloodmoon state cache on disconnect
2024-07-11T23:30:15 781.787 INF Client disconnected from dy mesh: Id: -1 Total: 0
2024-07-11T23:30:15 781.788 INF Player disconnected: EntityID=-1, PltfmId='Local_<none>', CrossId='<unknown/none>', OwnerID='<unknown/none>', PlayerName='', ClientNumber='22'
2024-07-11T23:30:15 781.788 INF Exited thread NCS_Writer_0_1
2024-07-11T23:30:15 781.788 INF Exited thread NCS_Reader_0_0
2024-07-11T23:30:15 781.788 INF Exited thread NCS_Reader_0_1
2024-07-11T23:30:15 781.788 INF Exited thread NCS_Writer_0_0
I'm stumped, and I'm not even at the level yet where port forwarding would come into play. Why is my server not receptive to straight TCP/IP connections via LiteNetLib?
Last edited by a moderator: