-
-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting servers to show up in the "LAN" tab of Steam's server browser #1770
Comments
Interesting sharing, i reopen this to be added un the wiki. Thanks for tatking the time to share. |
I was just adding notes to my original post when you commented. It seems that binding to an IP hides the server from the LAN browser. I had to completely remove the Also, 27020 is the starting port for HLTV, which I disabled by adding |
Just tried it, and |
OK so those ports that srcds opens automatically 26901-26905 are used to connect to the steam master servers. This can be assigned by adding "-steamport ${steamport}" to the start parameters. Manually specifying these allows to assign other srcds instances to those ports, thus you can have 14 servers show up in the LAN browser. Perhaps this should be implemented in the install scripts? |
What do you mean by steams server browser? Do you mean the LAN-tab of the games server browser? You might take a look at this issue, it is
Take a look at this issue, this is related to your sv_lan and binding to an IP problem: #1741 |
Yes, the LAN tab of the steam server browser.
That would explain why the servers stopped appearing in the LAN tab when an IP is specified. However, at least with the CSGO flavor of SRCDS, even specifying +sv_lan 1 does not fix this. |
Can confirm I ran in to this bug as well. Removing |
_default.cfg is the default config and will be overwritten every time. You must not edit your config this way. |
Related to the issue above, if you force the IP to be 0.0.0.0 as specified above it does allow the games to show in the LAN tab provided within the expected port ranges. However there is a nasty side effect, rcon no longer works. The only way I could get rcon to work was to leave the -ip ${ip} bit alone but then the game wasn't visible on the LAN tab. sv_lan 1 makes no difference. Any guidance here? I don't need an internet visible game. My use is purely for LAN parties. |
@tango-kilo here is my config for a working LAN only server I use for gaming events. (this particular one is Counter Strike.)
The only server that I used that this hasn't worked for is CS:GO. |
Failed on csgo, tf2 and fof for me |
TF2
FOF
If those don't work are you still able to connect to the server by adding it to favorites? Also, give ./servername debug a try. It was pretty helpful when trying to figure out the LAN only setting myself. |
Yes direct connect works but is more of a hassle than many attendees can/will deal with at an event. Also leads to fragmentation of attendee player base as they will start private games instead of joining whats provided. |
Yeah I agree. I just wanted to make sure something didn't get broken while changing the config. Any luck with the debug? Also, are you on the latest versions of the servers? |
Fixes #1770 Changed fail for warn
Unfortunately, I wasn't able to reproduce your fix. Maybe it's something with my test setup (a Linux VM on my Windows PC) but I don't think so, since I can easilly connect with commands I tried csgo and gmodserver, both with default ports, and with Can people who were able to get it working provide their hastebin links from postdetails command? |
Wrote this mini guide, hopefully summing up the situation correctly: https://github.com/GameServerManagers/LinuxGSM/wiki/LAN-Discovery Closing this issue for now. Feel free to bump it if you got interesting information to share. |
@UltimateByte @gingerbreadassassin @tango-kilo What fixed it for me (running tf2server on Ubuntu) was to simply
This makes my server show up in the LAN tab as well as make it available on the internet at its actual IP address (but not listed anywhere and I protect it with a password).
|
The fixing attempt in LAN Discovery worked for me:
There was no need for Debian GNU/Linux 9.5 (stretch) I proposed to add |
@UltimateByte there is more info being posted about this. Not sure if more is required for the docs |
@dgibbs64 Well, @borzaka confirms what we concluded before while @marlonrichert says basically the opposite. |
@UltimateByte @dgibbs64 I'm not saying the opposite of @borzaka. We agree on the following:
Where we differ is in whether you should replace I'm running it on Ubuntu 16.04.5 LTS. |
What ports are you using? Some reported that server discovery only works with some port ranges. |
I'm using the defaults:
|
@chandwki As it says, you should make your own config based on |
I'm understand. But how am I supposed to remove -ip from the fn_parms()? Is there another way to override it? |
Edit the |
Oh... of course. Yeah, works now that I removed the -ip param. I was just copying "parms" but not the other part. I'm a little sleep deprived getting ready for a LAN party this weekend haha. Thanks for the help. |
#1741 maybe related |
Coming back here years later because I'm working on a docker version of LGSM as a school project. It turns out that, in swarm mode, spinning up a CSGO docker service with If you don't need to have the server show up in the LAN tab, I believe you can choose any arbitrary port, assuming it is allowed through your firewall. |
connects to #3015 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm just posting this here in case anyone else runs into the same problems.
I'm hosting a LAN party this weekend, and want to simplify setup for everyone. While you can set source dedicated servers (in my case, CSGO servers) to any port, most of them will require adding the server to your favorites in the steam browser or connecting directly through the console. With 10-20 people, it gets tedious helping everyone get set up. To avoid this, I wanted to have the servers show up in the LAN tab.
It turns out that, by default, Steam's server browser only queries specific ports for LAN servers. Those ports are as follows:
A few notes: srcds_linux uses udp ports beginning at 26901, incrementing for each instance of srcds. I haven't tried binding any servers to ports 26901-26905, I don't know what srcds uses those ports for (they seem to be outbound only), and I don't know how to assign those ports, so use those at your own risk. Ignoring those, this allows 9 ports for srcds to bind to and be visible to the Steam LAN server browser. Also, I don't know if you can tell Steam's server browser to check other ports. I went through all this so that I wouldn't have to configure every guest's computer, so I didn't look into it.
Here's the results of my packet capture, showing which ports the server browser queries:
And here's the output of ss (netstat) -atunp | grep srcds_linux:
Of course, all this could be avoided by using VM's or perhaps docker, but I didn't want to spin up a VM for each server and I haven't had time to learn how to use docker.
The text was updated successfully, but these errors were encountered: