REST and server sockets bind to 127.0.0.1 — unreachable from Docker host #3
Loading…
Reference in New Issue
user.block.title
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All server components in
config.inibind to127.0.0.1(loopback).In Docker, loopback is scoped to the container — port forwarding from the host
only works if the process listens on
0.0.0.0.Additionally,
PublicIP(used to build the login URL sent to the D3 client)is also
127.0.0.1, so even if the client reaches port 1119, it gets redirectedto
http://127.0.0.1:83/battlenet/login— which resolves to the client machine,not the server.
Affected config sections (
src/DiIiS-NA/config.ini)[Battle-Server]BindIP127.0.0.10.0.0.0[REST]IP127.0.0.10.0.0.0[REST]PublicIP127.0.0.1<host machine IP>[Game-Server]BindIP127.0.0.10.0.0.0[NAT]PublicIP127.0.0.1<host machine IP>Symptom
D3 client connects on port 1119, receives login URL pointing to
127.0.0.1:83,GET request fails silently → disconnect + error 14003.
Fix
BindIPfields →0.0.0.0PublicIPfields → actual host IP (LAN or public)Notes
PublicIPideally should be configurable via env var (see config templates roadmap item).For now, needs to be set manually in
config.ini.