Skip to content

PG CLI: Binding to localhost instead of 127.0.0.1 #3132

@SirLouen

Description

@SirLouen

I've been playing around WSL2 for a while, and after some research I found one big problem:

It seems that by default WSL2 doesn't forward localhost. So anyone willing to play with docker containers or servers inside WSL2, will need to forward localhost with

localhostForwarding=true

Within the .wslconfig.

But the problem is that this forwarding is done via ipv6 not ipv4, so basically we can reach the ipv6 localhost within WSL2 failing to do this when we bind to 127.0.0.1.

CLI by default, binds to 127.0.0.1, the only way to bypass this is going with --site-url on run, but unless it's not possible due to some technical constraints, being able to run playground straight out of the box in WSL2 will be a good relief.

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