Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

How to open server on other port ? #61

Closed
shmidtelson opened this issue Oct 20, 2019 · 10 comments · Fixed by #62
Closed

How to open server on other port ? #61

shmidtelson opened this issue Oct 20, 2019 · 10 comments · Fixed by #62

Comments

@shmidtelson
Copy link

Statically use 27015.
I am use two servers on one vds. How to use 27016 port?

@crazy-max
Copy link
Owner

crazy-max commented Oct 20, 2019

See Configuration doc.

@shmidtelson
Copy link
Author

shmidtelson commented Oct 21, 2019

@crazy-max Sorry. I am use a Docker. And in container port using statically.

I am change docker-compose file - port forward to 27015:27016/tcp, but run command started with 27015 port, and global search works two servers on one address in rotating style.

@crazy-max
Copy link
Owner

@shmidtelson In your case -p 27016:27015 -p 27016:27015/udp

@shmidtelson
Copy link
Author

shmidtelson commented Oct 21, 2019

@crazy-max Ok, look.
Docker-compose:
Screenshot_20191021_192344
Start command inside docker-compose:
Screenshot_20191021_192652
Result in search...
ezgif-4-52a7d4cfa7c6
servers in search works alternately

@crazy-max
Copy link
Owner

@shmidtelson Hum maybe because the server is registered on 27015 internally. Keep you in touch.

@shmidtelson
Copy link
Author

@crazy-max I think, param +hostport send info in global search.
I have one idea:
Add in .env file param PORT with def. value 27015, and use this param in
docker-compose.yml

ports:
      - target: ${PORT}
        published: ${PORT}
        protocol: udp
      - target: ${PORT}
        published: ${PORT}
        protocol: tcp

And in srcds params +hostport ${PORT} in install script

@crazy-max
Copy link
Owner

Yes that's it

@crazy-max
Copy link
Owner

I prepare a PR keep u in touch

@crazy-max
Copy link
Owner

@shmidtelson Should be ok now

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

Successfully merging a pull request may close this issue.

2 participants