Access sql server on host pc by with a docker container

I’m trying to get data from sql server that runing in host pc to a docker container in the same pc. But it throws me this error.

getaddrinfo ENOTFOUND <ServerName>

I have checked the firewall and tcp ports. They seems fine. :thinking:
PS: I’m using node-red docker image on windows.

How do you connect to your host from the container?

I was trying using server name and port number as following example.

localhost/<servername> and 1433

Hi again

can you try and use: host.docker.internal