2

What exactly does this error mean and how can i fix it, am running server on port 8000 of local host.

ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

Muhuri.JSON
  • 163
  • 2
  • 14
  • This error can also arise if there is no server listening on that port. Are you sure your server is actually running? ;-) – djvg Feb 07 '20 at 10:15

2 Answers2

0

Is firewall running on the server? If so, that may be blocking connections. You could disable firewall or add an exception on the server side to allow connections on port 8000.

0

I needed to set my default VS-Code internal terminal profile to Command Prompt: enter image description here

For more details, please refer to this full answer.

Andreas L.
  • 3,239
  • 5
  • 26
  • 65