docker - cannot connect to exposed port on container using host ip
Solution 1:
This is likely due to known limitations of Docker networking.
From the link: "Per-container IP addressing is not possible"
Link is for Mac, as that is what I use, but I think there may be a similar limitation with Docker for Windows.
This is likely why you are able to access the container from localhost, but not by its IP.
EDIT: This all applies to connecting to the container from the host, if you want to connect to it remotely there are a bunch of other factors like firewalls that have nothing to do with Docker and might prevent you from accessing.