Skip to content

WSL 2 - Can't access to localhost after server reloaded #4366

Closed
@dangxquang

Description

@dangxquang
  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Windows build 18945.
  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
    When I run a new react server (i.e create-react-app), I can access localhost from windows. Then I try to edit some page, the react server rebuild but I can't reload the page. The browser keeps loading the page without response. It may take some minutes to be accessed again or I need to restart the server manually.
    If access via wsl-2 IP address, everything works like a charm.
  • What's wrong / what should be happening instead:
    App reload should be accessed via localhost without problems

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