Skip to content

Can't connect to WSL with post 400 error about connection refused - emulator doesn't connect to localhost #2433

@jeremykpark

Description

@jeremykpark

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

4.14.1

Describe the bug

Can't connect to local WSL2 ubuntu bot from windows emulator because its trying to connect to 127.0.0.1 not localhost. I can view my bots json running in WSL on localhost:3978 from a windows edge browser but if I try the same url with 127.0.0.1:3978 it doesn't work. unfortunately the emulator stubbornly will not let me use localhost, and converts it to 127.0.0.1 so I can't seem to get around this.

Expected behavior

It should be able to connect to a local bot on localhost:3978 not 127.0.0.1:3978

I have tried putting the no_proxy environment variable in and it still doesn't seem to work. Run out of options.

[bug]

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugYour classic code defectEnhancementNew feature or request to evolve an additional feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions