jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
898 stars 151 forks source link

[Bug Report] change server port to other udp than 8211 #177

Closed chackl1990 closed 5 months ago

chackl1990 commented 5 months ago

Have you read the Important information text above

Current behavior

Changing PUBLIC_PORT to anything in env file and correct it in compose file. The game sees the server offline.

Desired behavior

You need to set the following: servermanager.sh:

Line: START_OPTIONS="-port=$PUBLIC_PORT"

Then it worked

Links to screenshots

No response

To Reproduce

Steps to reproduce the behavior:

  1. Change PUBLIC_PORT in env file
  2. Change port in docker-compose.yml
  3. Start the server will lead the game to say that the server is offline / connection timeout.
  4. Correct servermanager.sh may fix it.

Software setup

Hardware setup

Additional context

Port Cmd-Line found here: https://www.reddit.com/r/Palworld/comments/19b5byz/dedicated_server_not_letting_me_change_the_port/

jammsen commented 5 months ago

Hey @chackl1990 - The PUBLIC_PORT is for external usage (same as PUBLIC_IP) and telling the Master-Sever on how to connect to your server. You dont need to change the Port=8211, thats inside Docker, thats why you can change it in Docker-Compose. There is no bug here. Just setup your Docker-Compose and default.env the right way.

chackl1990 commented 5 months ago

ok got it - i may have missed that sorry.