STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
78
IN-GAME
564
ONLINE
Founded
February 9, 2015
runthemilk Jan 26, 2020 @ 12:41pm
Unable to join Rust server. (Ports not listening in netstat).
I just setup a local server on my xeon machine at home to be able to develop plugins for rust.
Everything went smoothly so far, I am able to run the actual server with ./rustserver start.
As far as the logs show it seems to be running fine.
I forwarded ports 28015 UDP to my xeon machine.
I forwarded ports 28016 TCP to my xeon machine.

I am unable to connect via my gaming rig to the server.

My netstat isn't showing that i'm listening to any ports for rust or 28015 - 28016.

I also followed the guide to properly do my iptables. Only problem is they wont save there was an error? This might be the issue.

I am completely stuck - here are my logs.

https://hastebin.com/mukefucegu

netstat -tulpn | grep :28015 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)

$ netstat -atunp | grep Rust (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 92744 0 192.168.1.20:44382 162.243.189.2:443 ESTABLISHED 12100/./RustDedicat

./rustserver monitor logs
$ ./rustserver monitor [ INFO ] Monitor rustserver: Check IP: 192.168.1.20 [ OK ] Monitor rustserver: Checking session: OK [ OK ] Monitor rustserver: Querying port: gsquery: 192.168.1.20:28015 : 0/1: DELAY

The only thing in the server logs I can think of that might be causing this issoe
SocketException: The requested address is not valid in this context at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <0079a30f96a047348857e1cecc6c638a>:0 at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in <f1ab979dad39453bb3ab99ae17860fb2>:0 at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in <f1ab979dad39453bb3ab99ae17860fb2>:0 at Facepunch.Rcon.Listener.Start () [0x000de] in <5ed0581039094ea585410929f574b2a0>:0 at Facepunch.RCon.Initialize () [0x00112] in <d57c9ac8aa9c4683a772e47c219b91f6>:0 at Bootstrap+<StartServer>d__18.MoveNext () [0x0005b] in <d57c9ac8aa9c4683a772e47c219b91f6>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <5efc91990d9549c2a2cf3874065a5193>:0


Last edited by runthemilk; Jan 26, 2020 @ 1:17pm
< >
Showing 1-2 of 2 comments
UltimateByte Jan 30, 2020 @ 11:37am 
Hello,

Well, "I am unable to connect via my gaming rig to the server." means your server is not running properly.

Regarding the error logs, it might be a port forwarding issue as well as a binding issue : If there is already something listening on these ports on the system, or if you didn't specify an actual IP to bind to. In your case, make sure you set the IP to 192.168.1.20 in your LinuxGSM start parameters (also known as lgsm config file).
Also make sure that you disable, at least temporarily any firewall on the game server.

Check this for the full procedure https://docs.linuxgsm.com/support/troubleshooting#start-issues


Also, I think if I recall correctly that Rust needs more than 2 ports.
Wait for the server to be fully started, assuming it starts properly, (can take up to 10 minutes depending on your server CPU and HDD speed) then redo
netstat -atunp | grep Rust

You should see lines that say "LISTEN".
Also ./rustserver details should provide you with useful ports (though, the list may not be exhaustive).

The troubleshooting procedure for connecting to the server is summed up here: https://docs.linuxgsm.com/support/troubleshooting#connectivity-issues
Ma5terVain Apr 8, 2020 @ 12:16pm 
Originally posted by runthemilk:
I just setup a local server on my xeon machine at home to be able to develop plugins for rust.
Everything went smoothly so far, I am able to run the actual server with ./rustserver start.
As far as the logs show it seems to be running fine.
I forwarded ports 28015 UDP to my xeon machine.
I forwarded ports 28016 TCP to my xeon machine.

I am unable to connect via my gaming rig to the server.

My netstat isn't showing that i'm listening to any ports for rust or 28015 - 28016.

I also followed the guide to properly do my iptables. Only problem is they wont save there was an error? This might be the issue.

I am completely stuck - here are my logs.

https://hastebin.com/mukefucegu

netstat -tulpn | grep :28015 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)

$ netstat -atunp | grep Rust (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 92744 0 192.168.1.20:44382 162.243.189.2:443 ESTABLISHED 12100/./RustDedicat

./rustserver monitor logs
$ ./rustserver monitor [ INFO ] Monitor rustserver: Check IP: 192.168.1.20 [ OK ] Monitor rustserver: Checking session: OK [ OK ] Monitor rustserver: Querying port: gsquery: 192.168.1.20:28015 : 0/1: DELAY

The only thing in the server logs I can think of that might be causing this issoe
SocketException: The requested address is not valid in this context at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <0079a30f96a047348857e1cecc6c638a>:0 at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in <f1ab979dad39453bb3ab99ae17860fb2>:0 at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in <f1ab979dad39453bb3ab99ae17860fb2>:0 at Facepunch.Rcon.Listener.Start () [0x000de] in <5ed0581039094ea585410929f574b2a0>:0 at Facepunch.RCon.Initialize () [0x00112] in <d57c9ac8aa9c4683a772e47c219b91f6>:0 at Bootstrap+<StartServer>d__18.MoveNext () [0x0005b] in <d57c9ac8aa9c4683a772e47c219b91f6>:0 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <5efc91990d9549c2a2cf3874065a5193>:0

@runthemilk Did you fix this? I'm facing the same problem.
< >
Showing 1-2 of 2 comments
Per page: 1530 50