title: webpack-dev-server hot loading not working with boot2docker
body: <p>I am currently trying to get <code>webpack-dev-server</code> working with <a href="http://webpack.github.io/docs/webpack-dev-server.html#hot-mode" rel="nofollow">hot loading</a>, through boot2docker.</p>
  
  <p>I have files changes being picked up correctly in my container, by using <code>docker-osx-dev</code>, but the socket.io hot reloading is not working.</p>
  
  <p>The reason being that I set <code>--host 0.0.0.0</code> when running the server, so that it would be accesible on my host machine. This meant, however, that it is looking for the socket.io server at <code>0.0.0.0</code>.</p>
  
  <p>So when I load the page, it tries to connect to <code>http://0.0.0.0:8080/socket.io/?EIO=3&amp;transport=polling&amp;t=1434584701670-0</code> and I get an error in my consul. In reality it should be connecting to <code>http://dockerhost:8080/socket.io/</code>.</p>
  
  <p>Is there anyway to tell <code>webpack-dev-server</code> to use a different host to get the socket.io connection?</p>
  
  <p><a href="https://github.com/webpack/webpack-dev-server/issues/163" rel="nofollow">The Github issue 63</a> may refer to the same problem, but is unresolved.</p>