Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around Java emulators + WSL connectivity issues. #2780

merged 1 commit into from Nov 5, 2020


Copy link

@yuchenshi yuchenshi commented Nov 4, 2020


Fixes firebase/firebase-tools-ui#332

This affects Firebase CLI running on WSL only. It has an undesirable side effect of breaking IPv6 use cases, but this is arguably better than not being able to use it at all from the host. I don't think we have a way to serve both IPv4 and IPv6 from host until microsoft/WSL#4851 is fixed. See microsoft/WSL#4851 (comment) for the root cause of the issue.

Scenarios Tested

Manually tested by crwilcox@ on WSL2. Verified that Firestore Viewer in host can successfully list and edit data in Firestore emulator in subsystem.

Sample Commands

  • firebase emulators:start in WSL2.
  • curl from host to verify (it fails with connection refused without this patch).

@google-cla google-cla bot added the cla: yes Manual indication that this has passed CLA. label Nov 4, 2020
@yuchenshi yuchenshi marked this pull request as ready for review November 5, 2020 04:12
Copy link

@yuchenshi wow I'm so glad this is (mostly) solved now!

@yuchenshi yuchenshi merged commit bc882e2 into master Nov 5, 2020
1 check passed
@yuchenshi yuchenshi deleted the ys/wsl-java-workaround branch November 5, 2020 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
cla: yes Manual indication that this has passed CLA.
None yet

Successfully merging this pull request may close these issues.

firestore emulator on wsl2 does not work, results in ERR_CONNECTION_REFUSED
2 participants