1

我使用 Docker 在 Windows 10 Pro 上成功安装了 AzerothCore,它在本地运行良好。我试图公开服务器,以便朋友可以从互联网连接进行测试。

由于端口8085forworldserver无法在我的路由器上转发(可能是 ISP 或路由器固件保留它,其他端口就可以了),我尝试了一切以在 conf 文件中更改它,实际上在任何地方都对其进行了更改,并在 2 中添加了覆盖conf.dist。也在数据库的领域列表字段中更改了它authserver。重新编译所有内容:8085无论如何它都会保留(我可以使用 netstats 看到它)。

更详细地说:我将端口更改为在同一目录8086\azerothcore-wotlk\docker\worldserver\etc\worldserver.conf.dist 添加了该行。甚至更改了主安装目录中的端口。还更改了数据库条目中的相对字段。"WorldServerPort = 8086"worldserver.confworldserver.conf.dockerdist.env.distrealmlistauthserver

在配置修改后,我从头开始重建所有容器并重新组合它们:worldserver端口保持8085

4

2 回答 2

2

I managed to solve the problem with the help of Francesco Borzi: turned out dockers containers have their own ports exposed so I needed to change those too accordingly. I edited the docker-compose.yml file in main directory, where ports for the world server container are listed, along with the usual editings of worldserver confs and authserver database entries as usual, and recomposed from scratch. Thanks for help.

于 2020-03-17T23:18:32.207 回答
0

请记住,您使用的是 docker,您只需在 docker-compose 中更改端口重定向。

于 2020-10-15T16:02:54.547 回答