gatsby: Unable to bind to port 80 on macOS

Preliminary Checks

Description

MacOS has allowed unprivileged access to binding to all ports since macOS 10.14, but only when binding to 0.0.0.0.

Reproduction Link

https://github.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Open any gatsby project on a mac
  2. Run gatsby develop --host 0.0.0.0 --port 80

Expected Result

It should bind to port 80

Actual Result

It does not bind to port 80

Environment

System:
    OS: macOS 11.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 96.0.4664.45
    Firefox: 94.0.1
    Safari: 14.1.2

Config Flags

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (3 by maintainers)

Most upvoted comments

Aah! A ghost! (not fixed, don’t close)