How to use a custom port

I have a working postman collection. It works perfectly when working with the default port (meaning a url with no specific port specified). By when I want to specify a specific port my tests start failing and returning a Timeout error: Error: connect ETIMEDOUT xx.xx.xx.xx:port

I’m using a environment variable for maintenance purposes: {{apiLink}}/api/businessUnits?api-version=1.0 (I already tried without using a variable and putting the url directly in the GET field to specify the endpoint).

Am I doing something wrong? How can I specify a specific port to be used?

Stick the URL with the port number in a browser and see if you get the same issue.

If you do, then the issue is not with Postman but your network configuration.

If you are using Windows, you may need to check the windows firewall and allow access (if not using standard port 80 or 443).