IF you try an API endpoint, AND Postman reports that it cannot connect to
localhost:4000, AND you’re using the free version of Postman, THEN the
ECCONNREFUSED result may be because you’ve exhausted a free Team workspace’s quota.
For Linux Mint 20, although I don’t believe that matters.
1. I created a workspace without paying attention to whether it was a Team or Personal workspace.
2. I was confused why Postman returned “connection refused” when as part of a GET it attempted to access
3. I then tried
python -m http.server 4000. (That syntax for Python 3. Python 2 has a different syntax.)
I could then use any web browser to access
localhost:4000. So the problem wasn’t in the operating system or in the computer’s network configuration.
4. After a few missteps I realized that I had unintentionally created a free Team workspace AND that Team Workspace’s quota had been exceeded.
5. I created a Personal workspace and repeated the GET operation that had produced the connection refused error. In the Personal workspace the operation succeeded.
SO: If you’re using the free version of Postman, and you receive “connection refused” errors, then check whether you’re using a Personal or Team workspace. The problem may not have anything to do with your computer or its network configuration. It may instead be that you’ve used up your free Team workspace’s quota.
Cheers & hope this helps,