'Why do I get "Connection was refused by the server" when using Thunder Client on VS Code?

I'm using Thunder Client on Visual Studio Code, and tried making a request to "localhost:3000".

It gave me an error

Connection was refused by the server

Any fix to this?



Solution 1:[1]

Please use your IP address instead of localhost: ipaddress:port.

Then, it might work. Eg. 192.168.0.1:3000

For more information see our support page comment

https://github.com/rangav/thunder-client-support/issues/251#issuecomment-874439967

But instead of using localhost:9000 I did use the actual IP set for the computer… 198.168.0.189:9000 for example, then it works.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gino Mempin