Not able to connect docker from host when network change

Hi ,

I am not able to connect to docker container when there is network/ip change from office to home. But the same works with localhost or 127.0.0.1

I am connecting to VPN to connect to database.

root@1c970ed5cd64:/etc# curl http://localhost:8090/admin/health_check/all
{“health”:“passed”}root@1c970ed5cd64:/etc# curl http://192.168.0.103:8090/admin/health_check/all
curl: (7) Failed to connect to 192.168.0.103 port 8090: Connection refused

When i install docker again everything works fine.

Thanks,
Kusuma