Skip to content

Claims all ports occupied on macOS high sierra #29

@tko

Description

@tko

For every port I've tried detect-port claims the port is occupied but lsof finds nothing. Turning on DEBUG shows errors similar to

detect-port listen localhost:3009 error: Error: getaddrinfo ENOTFOUND localhost +1ms

It appears default macos installation does not include localhost in /etc/hosts -- the file is completely empty. Adding an entry fixes this, but IMO it shouldn't be required.

macOS 10.13.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions