title: How to curl to host from docker container
body: <p>I'm trying to setup an api gateway using docker container on my machine.</p>
  <p>The api container is map to port <code>8000</code> and run on a <code>bridge network</code> but the api is running directly on my machine without a container on port <code>19108</code> .</p>
  <p>What I'm trying to archive is when a HTTP request hit the endpoint <code>/order</code> on the port <code>8000</code> it will make another HTTP request to the port <code>19108</code> and return the response which was received but can't seem to find a way to make it work since i don't know the host machine ip.</p>
  <p>I've tried using <code>host.docker.internal</code>, the <code>ping</code> command returns response but the <code>curl</code> just return <code>HTTP Error 400. The request hostname is invalid</code>.</p>
  <p>Are there any workarounds or i should just use the <code>host</code> network instead?</p>