'Docker-Compose Nakama Console Ports not working when access from other device in the same WI-FI
I made containers with docker-compose which one of service direct to localhost port: 7351.
This is the part of my docker-compose.yml:
nakama:
build: .
# image: heroiclabs/nakama:3.11.0
depends_on:
- postgres
volumes:
- ./data/:/nakama/data
entrypoint:
- "/bin/sh"
- "-ecx"
- >
/nakama/nakama migrate up --database.address postgres:localdb@postgres:5432/nakama &&
exec /nakama/nakama --config /nakama/data/local.yml --database.address postgres:localdb@postgres:5432/nakama
expose:
- "7349"
- "7350"
- "7351"
#network_mode: "host"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7350/"]
interval: 10s
timeout: 5s
retries: 5
links:
- "postgres:db"
ports:
- "7349:7349"
- "7350:7350"
- "7351:7351"
restart: unless-stopped
So the 7351 port is for Admin Web Page.
It works well when I enter it from the localhost.
Like 127.0.0.1:7351 or 192.168.75.102:7351(IPv4 address)
But When I enter from android device which is in the same Wi-Fi to 192.168.75.102:7351, it doesn't response.

Is there a setting for it, or way to debug what is happening? I'm using Docker Desktop on Windows 10.
As I understand, if it is in same Wi-Fi, It should work the same as localhost. is it wrong?
Additionally, When I run Nakama server natively from the Windows, not through docker, It works fine when access from the android device in same Wi-Fi. But in native windows, I can't build golang modules for the server. So I need to run it on Linux Container.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

