Comments (2)
To open a port in the protected range of ports (<= 1024) you need to need the right permissions. That may vary per system. I would try to use a host that will bind to a non loopback interface, for example: { host: 0.0.0.0, port: 80 }
. This may require updating your firewall, to allow traffic through that interface (e.g, en0). On mac, u can check that nodjs is listed in system preferences -> security -> firewall. An alert box on mac will show up when you run port finder on a privileged interface for any port. On linux you would need to add the port to your firewall (a simple google query should explain how, depending on the distro). On windows, I'm not sure.
You may need to use sudo, but that is not ideal.
You can cross check these same steps by starting simple http server provided by python, on a privileged interface. The flow should be the same. (aka, start python server on 0.0.0.0 on any port - if there is a difference between how you get a server running with that tool and port finder, security wise, let me know, i'd be curious to hear about it.)
from node-portfinder.
closing to cleanup issue list, comments or questions still welcome, if needed
from node-portfinder.
Related Issues (20)
- 【feature request】support to use array as basePort HOT 3
- Should portfinder also have a getPortsPromise function? HOT 2
- Free port still in use HOT 3
- Version mismatch on `mkdirp` between `package.json` and `package-lock.json` HOT 1
- Update ci to test new versions of npm HOT 3
- If callback is passed to getPort() then all errors should be returned as first parameter of callback HOT 1
- migrate to mkdirp v1 HOT 9
- Webpack doesn't like portfinder HOT 14
- Cluster apps are all on same port instead of different ports HOT 2
- no highestPort ts definition in latest version HOT 2
- Update Readme to Specify NOT to use outside development port finding HOT 1
- Consider Dropping Legacy Support for Node JS 0.10.x HOT 6
- Please update mkdirp from 0.5.5 to 0.5.6 HOT 2
- Update "async" dependency HOT 9
- why mkdirp dependecy? HOT 9
- version 1.0.29 doesn't compile with typescript HOT 4
- `testPort` gets called with `65536`
- Create code of conduct HOT 1
- Before filing a socket not closed issue: understanding async I/O + ordering + OS differences + stability requirements HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-portfinder.