Container unable to access localhost service

Hello,

I am trying to access service hosted on my windows machine from the docker container .net core web api(using ocelot) but getting the following error message after 90 seconds. Can anyone please help me understand if I am missing something. Host configured in the ocelot as given below.
“DownstreamHostAndPorts”: [
{
“Host”: “host.docker.internal”,
“Port”: 5147
}
]

Error Message:
The request was canceled due to the configured HttpClient.Timeout of 90 seconds elapsing. errors found in ResponderMiddleware.

We recommend that you connect to the special DNS name host.docker.internal which resolves to the internal IP address used by the host. This is for development purpose and does not work in a production environment outside of Docker Desktop.

From the Docker doc.

Thanks for your revert but I am already using host.docker.internal and still getting the error with status code 499, as mentioned in my first message.
Could it be because of firewall, I am not sure why error code for timeout.