title: windows run docker with --network=host and access with 127.0.0.1
body: <p>I have windows 10 pro and I'm trying to run a docker with network mode host.</p>
  
  <p>my issue is that I can't run a docker and access it using the host ip not 127.0.0.1 and not the ip (in linux it works differently).</p>
  
  <p>looks like the hyper v has it's own network that not accessible using the host ip </p>
  
  <pre><code>docker run -d --network=host nginx
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>CONTAINER ID        IMAGE                                             COMMAND                  CREATED             STATUS                          PORTS               NAMES
  8edd86bf292b        nginx                                             "nginx -g 'daemon of…"   3 seconds ago       Up 2 seconds                                        happy_curie
  </code></pre>
  
  <p>so there is no ports as expected but and no errors.
  When I'm trying to open the browser using 127.0.0.1 I'm getting <code>ERR_CONNECTION_REFUSED</code> 
  if I set ports to instead of network mode host it is working</p>
  
  <pre><code>docker run -d -p 80:80   nginx
  </code></pre>
  
  <p>Hyper v  Ethernet adapter vEthernet (DockerNAT):</p>
  
  <pre><code>   Connection-specific DNS Suffix  . :
     IPv4 Address. . . . . . . . . . . : 10.0.75.1
     Subnet Mask . . . . . . . . . . . : 255.255.255.0
     Default Gateway . . . . . . . . . 
  </code></pre>
  
  <p>Remarks:</p>
  
  <ul>
  <li>changing in the hyper v virtual switch manager the network to be external - not helping
  
  <ul>
  <li>firewall is disabled</li>
  </ul></li>
  </ul>
  
  <p>any idea how to work with network mode host in windows? </p>