Skip to content

Port 80 is already in use error. #7327

@johnny-mh

Description

@johnny-mh

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.3.0
node: 6.11.2
os: darwin x64
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.3.0
@angular/compiler-cli: 4.3.3

Repro steps.

"serve": {
  "host": "0.0.0.0",
  "port": 80
}
$ ng serve --disable-host-check --e alpha-selleradmin --proxy-config ./proxy/selleradmin.conf.js

The log given by the failure.

Port 80 is already in use. Use '--port' to specify a different port.

Desired functionality.

Server work on 80 port.

Mention any other details that might be useful.

throw Error on angular/cli 's check-port.js module.

I have no process that using 80 port.

$ sudo lsof -t -i tcp:80 -s tcp:listen
// nothing
$ sudo lsof -i ':80'
// nothing
$ sudo lsof -n -i4TCP:$PORT | grep LISTEN
// nothing
$ lsof -n -iTCP:$PORT | grep LISTEN
// nothing
$ lsof -n -i:$PORT | grep LISTEN
// nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions