Giter Club home page Giter Club logo

Comments (5)

HeroicEric avatar HeroicEric commented on May 22, 2024 1

@eriktrom It looks like that host is in the output.

Here's the output from looking for the process running on that port again and then os.networkInterfaces():

> sudo lsof -i:49152

COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
eoshostd 207 root    3u  IPv6 0x304b1db76033cb15      0t0  TCP [fe80:4::aede:48ff:fe00:1122]:49152->[fe80:4::aede:48ff:fe33:4455]:61000 (ESTABLISHED)
> node
> os.networkInterfaces()

{ lo0:
   [ { address: '127.0.0.1',
       netmask: '255.0.0.0',
       family: 'IPv4',
       mac: '00:00:00:00:00:00',
       internal: true },
     { address: '::1',
       netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
       family: 'IPv6',
       mac: '00:00:00:00:00:00',
       scopeid: 0,
       internal: true },
     { address: 'fe80::1',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: '00:00:00:00:00:00',
       scopeid: 1,
       internal: true } ],
  en5:
   [ { address: 'fe80::aede:48ff:fe00:1122',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: 'ac:de:48:00:11:22',
       scopeid: 4,
       internal: false } ],
  en0:
   [ { address: 'fe80::18af:7192:2b42:5d75',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: 'f4:0f:24:21:3b:91',
       scopeid: 5,
       internal: false },
     { address: '192.168.1.87',
       netmask: '255.255.255.0',
       family: 'IPv4',
       mac: 'f4:0f:24:21:3b:91',
       internal: false } ],
  awdl0:
   [ { address: 'fe80::349f:47ff:fe71:7558',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: '36:9f:47:71:75:58',
       scopeid: 12,
       internal: false } ],
  utun0:
   [ { address: 'fe80::1233:577d:af46:2f68',
       netmask: 'ffff:ffff:ffff:ffff::',
       family: 'IPv6',
       mac: '00:00:00:00:00:00',
       scopeid: 13,
       internal: false } ] }

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024

see ember-cli/ember-cli#6513 (comment) for my initial response

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024
# Seems to work when the host from above is specified
> portfinder.getPort({ host: 'fe80:4::aede:48ff:fe00:1122' }, console.log)
undefined
> null 49153

@HeroicEric - can u open a node console and run os.networkInterfaces() and see if that host prints out? Very much appreciated.

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024

@HeroicEric - interesting - thanks for the output - helps a lot

from node-portfinder.

eriktrom avatar eriktrom commented on May 22, 2024

pass a stop port that is 20,000 ports lower than 65,000 via the new stop port option, see #63 for the api

(if someone wants to write docs for that, by all means)

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.