Skip to content
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

SERVER_PORT & SERVER_QUERYPORT env vars stop server to work with steam game browser #4

Closed
1 task done
SaschMie opened this issue Jan 24, 2024 · 23 comments
Closed
1 task done
Labels
bug 🐞 Something isn't working

Comments

@SaschMie
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

What is this exactly doing? Is that the external or internal ip? My docker is up and running but i cant find it in the server list, even if the logs said its connected and up (ports are open and correct). So i guess its maybe something with this ip thing, actual its empty.

@SaschMie SaschMie added the feature-request 🚀 New feature request label Jan 24, 2024
@cp-fabian-pittroff
Copy link
Member

Hey, this env var just sets the ip in the enshrouded_server.json. The ip is only for binding to the right network and can most likely ignored.

You can read more about the available configs here (Enshrouded Docs)

When you leave it empty, the default will be used (0.0.0.0) which binds to all networks or basically allow all incoming connections.

Have you tried to find the server with the steam servers list? (Steam -> View -> Servers) If you can't find your server listed there, you can try to manually add the ip on the same window. If it doesn't show you your server, you probably have a firewall issue.

If the server runs on the same network (locally), than it might be a dns-rebind-issue of your router. In that case, could you check if someone else can access the server?

@cp-fabian-pittroff cp-fabian-pittroff added bug 🐞 Something isn't working and removed feature-request 🚀 New feature request labels Jan 25, 2024
@brettinternet
Copy link

Does SERVER_IP and STEAM_API_PUBLIC_IP accept a FQDN such as ip.example.com to resolve the IP?

@cp-fabian-pittroff
Copy link
Member

cp-fabian-pittroff commented Jan 25, 2024

Just verified, both need to be valid ipv4 addresses. TheSTEAM_API_PUBLIC_IP is only relevant for the update cron, to check if the server is empty.

I should update my docs to clarify that both variables only allow ipv4 strings.

@cp-fabian-pittroff cp-fabian-pittroff added the waiting for feedback Waiting for additional info label Jan 25, 2024
@coute
Copy link

coute commented Jan 25, 2024

Hello @cp-fabian-pittroff , i have the same problem with the server. The server is launched and registered on Steam.

2024-01-25 12:08:02.818 supervisord: enshrouded-server [online] Server connected to Steam successfully
2024-01-25 12:08:03.126 supervisord: enshrouded-server [online] Server is not VAC Secure!
2024-01-25 12:08:03.127 supervisord: enshrouded-server [online] Server SteamId: *****
2024-01-25 12:08:03.127 supervisord: enshrouded-server [online] Public ipv4: ***.***.***.***

But when i'm in the game and searching for the server, i can't find it. I think it's an issue with the game, that is not able to retrieve all servers with the Steam API.
When i query the Steam API, the server is available :

curl -sX GET "https://api.steampowered.com/IGameServersService/GetServerList/v1/?key=**REDACTED**&filter=addr\\***.***.***.***:15637"
{"response":{"servers":[{"addr":"***.***.***.***:15637","gameport":15636,"steamid":"***","name":"crazyhorde","appid":1203620,"gamedir":"Enshrouded","version":"0.0.15.0","product":"Enshrouded","region":-1,"players":0,"max_players":16,"bots":0,"secure":false,"dedicated":true,"os":"w","gametype":"1;487046"}]}}

@cp-fabian-pittroff
Copy link
Member

Jeah, they hotfixed the server browser yesterday. It is now limited to about 50 I think. You should find your server directly in the steam servers browser (Steam -> View -> Servers) and mark it as a favorite (Docs)

PS: I removed your public IP & steamid from the comment.

@cp-fabian-pittroff
Copy link
Member

@coute I can't find it in steam either. Is the server still running?

@coute
Copy link

coute commented Jan 25, 2024

Yes. The server is running.

@cp-fabian-pittroff
Copy link
Member

Hm, thats very odd. Maybe try restarting the server and double check if there is any firewall blocking incoming packages (udp).

If it is a homeserver scenario, also check if you forwarded both udp ports to the server.

@SaschMie
Copy link
Author

SaschMie commented Jan 25, 2024

Strangely mine is now in the list, but another one from gportal not. Seems to be some issue with the server browser of the game to me. I changed nothing at the config...

@MrSnake0208
Copy link

MrSnake0208 commented Jan 25, 2024

I'm experiencing the same issue; I am unable to find my server consistently.

2024-01-25 14:02:18.473 supervisord: enshrouded-server [OnlineProviderSteam] finished transition from 'Initialized' to 'InGame' (current='InGame')!


2024-01-25 14:02:18.474 supervisord: enshrouded-server [Session] 'HostOnline' (up)!


2024-01-25 14:02:18.474 supervisord: enshrouded-server [Session] finished transition from 'Lobby' to 'Host_Online' (current='Host_Online')!

@cp-fabian-pittroff
Copy link
Member

@MrSnake0208 could you tell me your server name, so I can try to find it?

And also double check if there is some firewall or forwarding issue on the server network.

@coute
Copy link

coute commented Jan 25, 2024

No issue with the firewall

nc -v -u ***.***.***.*** 15636
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15636.

nc -v -u ***.***.***.*** 15637
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15637.

@MrSnake0208
Copy link

MrSnake0208 commented Jan 25, 2024

@MrSnake0208 could you tell me your server name, so I can try to find it?

And also double check if there is some firewall or forwarding issue on the server network.

Yahu Farm
And also No issue with the firewall

@cp-fabian-pittroff
Copy link
Member

No issue with the firewall

nc -v -u ***.***.***.*** 15637
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15637.

nc -v -u ***.***.***.*** 15638
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15638.

you use 15637 and 8? In the steamapi it returns 15636 for the gameport and 7 for query.

@MrSnake0208
Copy link

No issue with the firewall

nc -v -u ***.***.***.*** 15637
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15637.

nc -v -u ***.***.***.*** 15638
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to ***.***.***.***:15638.

you use 15637 and 8? In the steamapi it returns 15636 for the gameport and 7 for query.

I use 37304 and 38304 because share the device with others and i can't use 15636 and 15637

@coute
Copy link

coute commented Jan 25, 2024

    ports:
      - "15636:15636/udp"
      - "15637:15667/udp"

I'm a monkey ! 15667

@coute
Copy link

coute commented Jan 25, 2024

An other thing to fix because i'm using swarm, set the host mode :

    ports:
      - target: 15636
        published: 15636
        protocol: "udp"
        mode: "host"
      - target: 15637
        published: 15637
        protocol: "udp"
        mode: "host"

And always check that ports are opened on the host :

ss -nlu | grep 1563
UNCONN 0      0            0.0.0.0:15636      0.0.0.0:*
UNCONN 0      0            0.0.0.0:15637      0.0.0.0:*

@cp-fabian-pittroff
Copy link
Member

@MrSnake0208 I tested it with a second enshrouded server. It seems, I can only find one server. The other sever returns the same same query and gameport for a different steamid. Not sure why though

Do you have another server running on the same public ip?

@cp-fabian-pittroff
Copy link
Member

oh well, I might have the problem - give me a sec

@coute
Copy link

coute commented Jan 25, 2024

After to have fixed ports, i still have the same problem.

@cp-fabian-pittroff
Copy link
Member

found the problem. For now don't use the SERVER_PORT and SERVER_QUERYPORT variables. They add an unintended " and that breaks the enshrouded server logic.

For now just remove the env vars and set the ports manually in the enshrouded_server.json without the ".

I will prepare a fix, after I did some more testing.

@cp-fabian-pittroff cp-fabian-pittroff removed the waiting for feedback Waiting for additional info label Jan 25, 2024
@cp-fabian-pittroff cp-fabian-pittroff changed the title SERVER_IP SERVER_PORT & SERVER_QUERYPORT env vars stop server to work with steam game browser Jan 25, 2024
@cp-fabian-pittroff
Copy link
Member

fix is available with the current dev branch. I will add some more changes and publish a new release later today.

@coute
Copy link

coute commented Jan 25, 2024

Fixed for me. It was a firewall issue. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants