Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not detecting touchbar macbook pro process #47

Closed
HeroicEric opened this issue Dec 7, 2016 · 5 comments
Closed

Not detecting touchbar macbook pro process #47

HeroicEric opened this issue Dec 7, 2016 · 5 comments

Comments

@HeroicEric
Copy link

HeroicEric commented Dec 7, 2016

Related to ember-cli/ember-cli#6513

It seems that the new Touchbar Macbook Pros use port 49152 for something related to the touchbar. portfinder still returns this port as available when it's in use by (what we think is) the touchbar.

> sudo lsof -i:49152
COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
eoshostd 183 root    3u  IPv6 0x6598d6d8df58d085      0t0  TCP [fe80:4::aede:48ff:fe00:1122]:49152->[fe80:4::aede:48ff:fe33:4455]:61000 (ESTABLISHED)
> portfinder.getPort(console.log)
undefined
> null 49152

> portfinder.getPort({ host: '0.0.0.0' }, console.log)
undefined
> null 49152

> portfinder.getPort({ host: 'localhost' }, console.log)
undefined
> null 49152

# Seems to work when the host from above is specified
> portfinder.getPort({ host: 'fe80:4::aede:48ff:fe00:1122' }, console.log)
undefined
> null 49153
@eriktrom
Copy link
Member

eriktrom commented Dec 8, 2016

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

@eriktrom
Copy link
Member

eriktrom commented Dec 8, 2016

# 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.

@HeroicEric
Copy link
Author

@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 } ] }

@eriktrom
Copy link
Member

eriktrom commented Dec 8, 2016

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

@eriktrom
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants