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

any way to change game server port (27960)? #26

Open
SimonCoulombe opened this issue Apr 13, 2024 · 1 comment
Open

any way to change game server port (27960)? #26

SimonCoulombe opened this issue Apr 13, 2024 · 1 comment

Comments

@SimonCoulombe
Copy link

hey everyone,
is there a way to change the game server port? I tried editing the server.cfg to add this
set net_port "8080"
but it's still listening on port 27960 .
log:

2024-04-13 12:29:04 Hostname: emscripten
2024-04-13 12:29:04 IP: 172.29.1.0
2024-04-13 12:29:04 Opening IP socket: 0.0.0.0:27960

any idea? It's because my friend has some outbound port being blocked and connect using 27960
cheers

@dmateos
Copy link

dmateos commented Jul 3, 2024

Very hacky but i do this to run multiple on diff ports via a customised dockerfile

FROM treyyoder/quakejs:latest

COPY server.cfg /quakejs/base/baseq3/server.cfg
COPY server.cfg /quakejs/base/cpma/server.cfg
COPY entrypoint.sh /
RUN chmod 777 ./entrypoint.sh

RUN sed -i -e 's/27960/27961/g' /var/www/html/index.html

Then i run it with

docker run -d -e HTTP_PORT=13372 -p 13372:80 -p 27961:27960 normal:latest .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants