0

Is it possible to use tailscale with WSL? I want to set up a private network, which includes a WSL system, and serve jupyter notebooks to any device within the private network. I want to refer to the notebook's server using an ip address or DNS name.

BSalita
  • 8,420
  • 10
  • 51
  • 68

1 Answers1

1

Tailscale works with WSL using the following steps:

  1. In WSL, create a unique hostname e.g. hostname my-systemname-wsl-ubuntu-20-04. Restart WSL terminals.
  2. Follow tailscale's Linux installation instructions.
  3. I recommend turning on tailscale's DNS feature.
  4. Verify that $HOSTNAME is listed in https://tailscale.com/admin.
  5. Make sure you can ping hostname from other network devices.
  6. In a WSL terminal: sudo tailscaled
  7. In another WSL terminal: sudo tailscale up.
  8. Start jupyter notebook: jupyter notebook --ip $HOSTNAME
  9. Access notebook from any device's browser: https://my-systemname-wsl-ubuntu-20-04:8888
BSalita
  • 8,420
  • 10
  • 51
  • 68