diff --git a/src/workerd/server/container-client.c++ b/src/workerd/server/container-client.c++ index a906bbec90f..81f6af1bea1 100644 --- a/src/workerd/server/container-client.c++ +++ b/src/workerd/server/container-client.c++ @@ -874,9 +874,10 @@ kj::Promise warnAboutStaleSnapshotVolumes(kj::Network& network, kj::String } // Returns the gateway IP on Linux for direct container access. -// Returns kj::none on macOS where Docker Desktop routes host-gateway to host loopback. +// Returns kj::none on macOS and Windows where Docker Desktop routes host-gateway to host loopback +// through the VM (so the bridge gateway IP is not a local interface on the host). kj::Maybe gatewayForPlatform(kj::String gateway) { -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(_WIN32) return kj::none; #else return kj::mv(gateway);