Skip to content

Master crashes when opening two apps (and port conflicts) #2112

Description

@gaearon

This is some new issue.

screen shot 2017-05-10 at 5 33 37 pm

Activity

  1. Timer commented on May 10, 2017

    @Timer
    Contributor

    This regression was introduced when we fixed the behavior of our HOST binding. detect-port does not support specifying an address to check on, so we need to switch packages or send a PR upstream to add the functionality.

    tl;dr we listen on 127.0.0.1, detect-port checks on 0.0.0.0

  2. Timer commented on May 10, 2017

    @Timer
    Contributor

    Filed an issue upstream: node-modules/detect-port#19.

  3. gaearon commented on May 10, 2017

    @gaearon
    ContributorAuthor

    Hmm. If we're listening on 127.0.0.1, does it mean access from local network doesn't mean by default anymore? This seems frustrating. Why did we change this?

  4. Timer commented on May 10, 2017

    @Timer
    Contributor

    We've always said we're listening on localhost which implies we're not listening on the entire local network. Mainly, it was done out of interest in security (since we proxy API calls which are going to be elevated during development).

    Previously we said localhost but actually listened on 0.0.0.0.

    I'm not opposed to listening to 0.0.0.0 by default.

  5. added this to the milestone on May 10, 2017
  6. gaearon commented on May 10, 2017

    @gaearon
    ContributorAuthor

    I'd prefer we keep the existing behavior with using 0.0.0.0 as a default. I'm cool with printing 0.0.0.0 to the console in this case for posterity.

  7. Timer commented on May 10, 2017

    @Timer
    Contributor

    Fair enough, the 0.9.x branch currently does this (and prints 0.0.0.0). I'll send a PR.

  8. Timer commented on May 11, 2017

    @Timer
    Contributor

    Opened #2117; that issue still doesn't solve this issue because Node's default behavior is to bind to IPv6, not IPv4. We might want to follow suit, but it's a bit more involved than specifying :: or 0:0:0:0:0:0:0:0.

  9. gaearon commented on May 11, 2017

    @gaearon
    ContributorAuthor

    Um. I still don't quite get it. Can we just revert to old behavior in the meantime? Or was that fix important?

  10. Timer commented on May 11, 2017

    @Timer
    Contributor

    It's important because HOST doesn't work otherwise, the issue was already fixed in detect port so we just have to update the dependency and this should start working again.

  11. gaearon commented on May 11, 2017

    @gaearon
    ContributorAuthor

    Okay. Can you take care of this?

  12. Timer commented on May 11, 2017

    @Timer
    Contributor
  13. Timer commented on May 14, 2017

    @Timer
    Contributor
  14. Timer commented on May 15, 2017

    @Timer
    Contributor

    Fixed via #2147

  15. locked and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions