Allow disabling IPv6 for emulators (e.g. for Codespaces port forwarding)
See original GitHub issueEnvironment info
firebase-tools: 9.16.6
Platform: Linux
Test case
Install firebase-tools.
Steps to reproduce
Run the firebase emulators with npx firebase emulators:start
Expected behavior
All services would bind to 127.0.0.1
(and, optionally, also to [::ffff:127.0.0.1]
).
The codespaces port forwarding feature would work as expected.
Actual behavior
Some services (in particular the firestore emulator) only bind to IPV6 localhost:
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 4096 [::ffff:127.0.0.1]:43299 *:* users:(("java",pid=19991,fd=78))
LISTEN 0 4096 [::ffff:127.0.0.1]:8080 *:* users:(("java",pid=19991,fd=79))
LISTEN 0 50 [::ffff:127.0.0.1]:36567 *:* users:(("java",pid=19991,fd=22))
LISTEN 0 4096 [::ffff:127.0.0.1]:34265 *:* users:(("java",pid=19991,fd=53))
and the codespaces port forwarding is not working.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Untitled
Tabeer roya online, Obituary 2011, Scat split port vw heads, ... Mcgowan family foundation, Gelonch tasting menu, Disable ipv6 ubuntu 8.04, ...
Read more >What Most powerful chromebook for use by a developer - Reddit
Any thoughts on how I can or what is possible? GPSD would use Port 2947, and I could forward it to the Android,...
Read more >how to install express in console Code Example
N: Updating from such a repository can't be done securely, and is therefore disabled by default. Problem binding to port 80: Could not...
Read more >Free for developers - DEV Community
Pulumi — Modern infrastructure as code platform that allows you to use familiar programming languages and tools to build, deploy, and manage ...
Read more >geforce experience github - La Columnaria Blog
Controllable not only makes the game more accessible by enabling ... Other features such as camera control and FPS uncap are disabled until...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@markgoho we have a function that does check for that variable specifically
isCloudEnvironment
: https://github.com/firebase/firebase-tools/blob/master/src/utils.ts#L554-L559(not sure how it’s used throughout the codebase, but that seems like a good exercise for the reader 🙂 )
v11.14.3
has better logic in it that should help with not binding to ipv6 if it’s unavailable. Give that a whirl (without overriding all the things) and see if that helps?