The Host network is not available in Windows, so that won’t be an option. You might be using NAT.
There’s a bunch of things here to unpack, but what I’m interested is why do you need to resolve the container id from the host? Are you using MSDTC inside the container? There are limitations in using MSDTC and you can check the official documentation from Microsoft here: Lift and shift to containers | Microsoft Learn