question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server not listed on ServerList.Internet

See original GitHub issue

Hello,

I started to use your wrapper to implement steamworks on my game but I have an issue with creating a steam lobby, the lobby seems correctly registred to steam (server.LoggedOn returns true) but I can’t find the server, even without filters I’m using the source from the Facepunch.Steamworks.Unity project

Here is the code of the server creation :

// SteamManager.APP_ID = 480 (same as steam_appid.txt)
// version = "0.25.0"
// SteamManager.SteamClient is instance of Client

server = new Server (SteamManager.APP_ID, 0, port, port, port, true, version);
server.LogOnAnonymous ();
server.MaxPlayers = maxPlayers;
server.ServerName = serverName ;
// some other settings & setKeys

ticket = SteamManager.SteamClient.Auth.GetAuthSessionTicket ();
if (!server.Auth.StartSession (ticket.Data, SteamManager.SteamClient.SteamId)) {
    Debug.LogWarning ("Auth failed on server creation");
}

Is something missing from the server creation ?

For the listing I simply use

SteamManager.SteamClient.ServerList.Internet ();

With or without filters

Thanks for your support

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
garrynewmancommented, Jun 11, 2017

Server lists are kind of a two stage thing. First your server needs to get itself listed with Steam. You can check if that’s successful by starting your server and going to:

http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001/?format=json&addr=109.95.212.35

where the address is your own ip address.

Then the server needs to be reachable by the client. Your client will download a list of ips and ports from Steam, and then try to ping them and retrieve information like player count etc. If it can’t ping them it’ll assume they’re not up.

Reasons for not being able to ping would usually be firewall related. But if you’re hosting and checking on the same computer you can rule that out.

From your code it looks like you might be using the same port for the game connection port, the server query port and the steam connection. This would probably cause issues (and I should maybe put an assert there).

I would try changing the steam port to port+1 to see if that fixes it. It’s okay for the game and query port to be the same as long as your game is udp (query is tcp).

1reaction
jswigartcommented, Jun 12, 2021

Ok a follow up. I was able to finally get it to show in the server browser. I noticed that my server was being returned by a client Steamworks.ServerList.Internet, despite not showing up on the master server list steam window, so on a whim I changed my moddir to match one that was showing up, in this case “spacewar” and eureka, the server started showing up.

So apparently the mod directory can’t just be anything. That leaves me with the question of, what determines valid values for the moddir to ensure the server will show up?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom server not showing up in the server list : r/vrising
Go into your serverhostsettings.json and change the port and query port from 9876 and 9877 to 27015 and 27016. Make sure all the...
Read more >
not appearing in any Steam Server List. [Solved]
The problem: the server refuses to show on either the in-game or steam server lists. I've checked the server logs and it clearly...
Read more >
Dedicated Server - Not appearing in Server List
Hi all, came here for a bit of advice please. Situation is as follows - I have a dedicated SE server on a...
Read more >
My Server doesnt show up in internet-list
Hey guys, ive got a problem hosting my server cause he wont show up in list... The server works fine, pings are cute...
Read more >
Server not showing in server list - General Support
Steam: View -> Servers -> Favorites: Right click in the list -> Add by IP -> enter IP:port (port is the server browser...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found