gatsby: Unable to bind to port 80 on macOS
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
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
- Open any gatsby project on a mac
- 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)
Aah! A ghost! (not fixed, don’t close)