question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow disabling IPv6 for emulators (e.g. for Codespaces port forwarding)

See original GitHub issue

Environment 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:open
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bkendallcommented, Jun 24, 2022

@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 🙂 )

0reactions
bkendallcommented, Oct 14, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found