# Localhost connection refused

**URL:** <https://forums.docker.com/t/localhost-connection-refused/46563>\
**Category:** Docker Desktop\
**Tags:** windows\
**Created:** [February 18, 2018, 6:26pm UTC](https://forums.docker.com/t/localhost-connection-refused/46563 "2018-02-18T18:26:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rajchaudhuri](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rajchaudhuri/32/46403_2.png) [@rajchaudhuri](https://forums.docker.com/u/rajchaudhuri)\
**Post date:** [March 19, 2018, 4:00am UTC](https://forums.docker.com/t/localhost-connection-refused/46563/4 "2018-03-19T04:00:04Z")

</div>

This is a known current limitation of Docker for Windows. You cannot use localhost or any of the host’s IP addresses or names to access containers _from the host itself_. External machines can do so. On the host, you can only use the container’s IP address and port to access the container.

Details can be found on the following github issue:

> <https://github.com/docker/for-win/issues/204>

---

_[View the full topic](https://forums.docker.com/t/localhost-connection-refused/46563)._
