title: Expose container port to Host using Docker for Windows in Windows 10
body: <p>I've reading <a href="https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/" rel="noreferrer">docker API</a> and trying to create a simple container and expose 1 port.</p>
  
  <p>In my example, I have an application that listen on <strong>TCP</strong> port <code>9595</code> inside the container and I want to access it from outside world (i.e. the host of the container) on port <code>9090</code>.</p>
  
  <p>When creating the container I have <code>"ExposedPorts": { "9595/tcp: {}" }</code> and the <code>"PortBindings": { "9595/tcp": [{ "HostPort": "9090" }] }</code>.</p>
  
  <p>So, if I access from the Host machine <code>http://container_internal_ip:9595</code> it works! However, when I access <code>http://localhost:9090</code>, which is what I expect using this port map feature, it doesn't work...</p>
  
  <p>While running <code>docker port containerID</code> I have <code>9595/tcp -&gt; 0.0.0.0:9090</code> and that should means, <code>when connecting to any IP on the host, at port 9090, forward to the container in port 9595</code>.</p>
  
  <p>So, what is wrong here? Why can't I connect to 9090?</p>
  
  <p>I appreciate any clarifications.</p>