Requests to local URL either timing out or getting DNS Lkup error

Hi all,

I have microservices running locally on my laptop in Windows Docker containers, and I have Docker Desktop installed.

Here is the environment information:

Postman for Windows

Version11.14.1

UI version
11.14.1-ui-240925-1856

Desktop platform version
11.14.0

Architecture
x64

OS platform
win32 10.0.22631

I am unable to get a response from a GET request to local URL:

  1. When using the Web version of Postman, I get the following error:

Error: DNSLookup: ENOTFOUND pf4xs2bc

:arrow_forward:Request Headers

Content-Type: application/x-www-form-urlencoded

Authorization: Basic UG9zdG1hbjpTZWNyZXQ=

User-Agent: PostmanRuntime/7.42.0

Accept: /

Cache-Control: no-cache

Postman-Token: c05fc44c-4732-42ea-b6df-05b67bfdd865

Host: pf4xs2bc

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

  1. When using Postman API, I get the following error:

Error: connect ETIMEDOUT 10.0.0.229:80

:arrow_forward:Request Headers

Content-Type: application/x-www-form-urlencoded

Authorization: Basic UG9zdE1hbjpTZWNyZXQ=

User-Agent: PostmanRuntime/7.42.0

Accept: /

Cache-Control: no-cache

Postman-Token: 44f6853e-7dfa-459c-b310-4a428afbcb4a

Host: pf4xs2bc

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

I appreciate any help.

You will need to install the Postman Desktop Agent if you are using the web client and you want to access local resources. The requests are generally sent from the Postman cloud which will not have access to your local resources (10.x.x.x are local addresses).

Therefore the DNSLookup error is correct in that instance. The web client will not be able to resolve that local IP address without the postman agent.

The ETIMEDOUT error is different and could be caused by various issues. It means that its connected to the IP address, but is not getting a response in a timely manner. The first step is usually to check your local firewall settings even if you are running the desktop client on the same machine as your docker container. Whenever Postman gets updated, I normally get a windows prompt to allow access through the local firewall. Did you see such a prompt? You also need to check that your application is running. Perhaps by running an independent check with cURL to check connectivity.

Hi Mike,

Thanks for the reply.

I did see the windows prompt today, when opening the Postman app on my laptop, and checked the box to allow private networks to access the application.

I finally got the request to work and return an expected response, I had to tweak a connection string setting in a database table that the microservice, that handles authentication, calls to get a security token.

1 Like