Skip to content

Client can't connect to server in WSL environment #91

@MaksimMyshkin

Description

@MaksimMyshkin

Environment: Windows 10 with WSL2. codecrumbs installed in WSL2 OS.

How to reproduce:

  • start codecrumbs in wsl console
  • open browser and go to localhost:2018 (in Windows)
    After that client just hanging out. Console contains the message: "WebSocket connection to 'ws://127.0.0.1:3018/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED".

How to solve:
It's need to just use localhost in url instead of 127.0.0.1. Otherwise ports from WSL are not accessible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions