Giter Club home page Giter Club logo

Comments (9)

eriktrom avatar eriktrom commented on May 22, 2024

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.

adi518 avatar adi518 commented on May 22, 2024

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.

eriktrom avatar eriktrom commented on May 22, 2024

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.

adi518 avatar adi518 commented on May 22, 2024

I assumed something is missing from your checks. I'll let you know tomorrow.

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024

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.

adi518 avatar adi518 commented on May 22, 2024

Ah, that's good to know. I'll try it.

from node-portfinder.

adi518 avatar adi518 commented on May 22, 2024

Didn't manage to play around with it today, hopefully in the next days. Thanks for your help.

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024

@adi518 - this should be fixed by #33 - if you find otherwise, let me know.

Thanks for filing the issue 👍

from node-portfinder.

adi518 avatar adi518 commented on May 22, 2024

Great news, thanks. :)

from node-portfinder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.