quakejs-docker icon indicating copy to clipboard operation
quakejs-docker copied to clipboard

any way to change game server port (27960)?

Open SimonCoulombe opened this issue 1 year ago • 2 comments

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

SimonCoulombe avatar Apr 13 '24 16:04 SimonCoulombe

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 .

dmateos avatar Jul 03 '24 05:07 dmateos