FHIR Chat · Local Configuration Issue · inferno

Stream: inferno

Topic: Local Configuration Issue


view this post on Zulip Fred Harmon (Sep 01 2020 at 12:46):

Hello, it's my first time trying to install Inferno and I'm having a little trouble getting Inferno to connect to my local FHIR server running on my machine (assuming that is possible). I looked on the wiki for a description of the "bind" config option but I didn't see a description and wasn't sure if that was what I needed to change. I have also setup the config file to point the "localhost_reference_server" to my local FHIR instance.

My problem is that all of the tests fail with some flavor of either "Failed to open TCP connection to locahost:80 (getaddrinfo: Name or service not known)" or "Failed to open TCP connection to LAPTOP-MB3K78O7:443 (getaddrinfo: No address associated with hostname)" depending on how I have the "uri" parameter set in my local preset.

view this post on Zulip Robert Scanlon (Sep 01 2020 at 13:04):

Hi Fred -- are you using Docker to run your local instance (e.g. docker compose up)? If so, Inferno runs in its own container that acts like an isolated VM, so referencing localhost will essentially look for something running in that same VM. The way we usually get around this is to point Inferno to the IP address of your host machine instead of relying on localhost or a host name. Are you running this on Windows, Mac or Linux?

view this post on Zulip Fred Harmon (Sep 01 2020 at 13:05):

Ah great point. Yes, I am running this in Windows in Docker. Trying now to replace localhost with my actual IP for my machine. Will let you know.

view this post on Zulip Fred Harmon (Sep 01 2020 at 13:10):

That did the trick. Thanks a lot @Robert Scanlon . Nice easy one to start the day. :joy:

view this post on Zulip Bradley Strecker (Sep 01 2020 at 15:07):

I was just dealing with this yesterday. If you don't want to keep track of your machine's actual IP, you should be able to use Docker's special 'host.docker.internal' DNS name to refer to the host machine. Works for me on Mac, and appears like it should work for Windows as well: https://docs.docker.com/docker-for-windows/networking/#use-cases-and-workarounds

view this post on Zulip Robert Scanlon (Sep 01 2020 at 16:52):

Thanks @Bradley Strecker! I believe we had issues using that at some point in the distant past (perhaps on Windows) and ended up just using direct IP addresses, but that certainly is a better solution if it works.


Last updated: Apr 12 2022 at 19:14 UTC