Fastpages local dev on WSL2 - server refused to connect

Has anyone else run into this issue?

Setup:

  • Windows 10 Enterprise v1909
  • Ubuntu 20.04.1 LTS
  • Docker 2.5.0.1 stable

Steps to replicate:

  1. Clone GitHub repo into WSL2
  2. Run make server command
  3. Attempt to connect to 127.0.0.1:4000 in Windows Chrome browser
  4. Result: “host refused to connect”

Any ideas out there as to how I might be able to preview my fastpages build served from WSL2 via my Windows browser?

Note: This problem does NOT occur when running jupyter notebook on it’s own, but the jupyter server run via the Makefile from the fastpages template also refuses to connect.

SOLUTION: sudo apt-get install build-essential

Apparently, these “essential” libs were not installed by default in the WSL Ubuntu 20.04 distro…

Now everything works.

1 Like

Thanks for sharing