Comments (9)
port 80 (or any port) can be opened on more than one interface/host. If you have ipv6 enabled for example, you can start a server on port 80 on 127.0.0.1 and 0.0.0.0 and ::1
for example. There are possibly more interfaces via ipv6 that can also start, that we don't currently look for. One of those is ::0
something we discussed in an old ticket last week but should be moved here
can you run this once get those servers up on port 80, it'll give us more info
netstat -an | grep 80
Thanks
I'll help you work through this tomorrow(I have an emergency to fix today, server went down), in the meantime there is discussion of a similar issue at the end of #21 which we should move to this new ticket - but it provides context on your issue - try working through the steps mentioned there (which are basically running netstat)
from node-portfinder.
I don't have ipv6 enabled, but I'll check again. I left a commented portfinder snippet in my code and tried openport instead, which worked as expected. You'll have my feedback nonetheless.
from node-portfinder.
Awesome thanks @adi518 - my guess is netstat should say the host is something other than 127.0.0.1, 0.0.0.0 or ::1
- and depending on what you get back when running that, we can add it to the list of hosts we check when trying to find an open port (on a unique host) - parallels VM uses port ::0
for example, which I plan on adding - your corporate issued laptop may also be setup with a network card that tries to do something non standard - we'll get it worked out, thanks a bunch for the help
from node-portfinder.
I assumed something is missing from your checks. I'll let you know tomorrow.
from node-portfinder.
kewl - also worth noting is that you can pass one additional host that we'll check via portfinder.getPort({ host: 'myhostnameorip' })
which if that works we can make a default
from node-portfinder.
Ah, that's good to know. I'll try it.
from node-portfinder.
Didn't manage to play around with it today, hopefully in the next days. Thanks for your help.
from node-portfinder.
@adi518 - this should be fixed by #33 - if you find otherwise, let me know.
Thanks for filing the issue
from node-portfinder.
Great news, thanks. :)
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
- All ports lower than 1024 are closed HOT 2
- 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.