Angular-cli: Port 80 is already in use error.

Created on 10 Aug 2017  Â·  3Comments  Â·  Source: angular/angular-cli

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

Most helpful comment

ports below 1048 needs to root privileges. issue close.

Then the error message should be changed to something meaningful please.

All 3 comments

ports below 1048 needs to root privileges. issue close.

ports below 1048 needs to root privileges. issue close.

Then the error message should be changed to something meaningful please.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rwillmer picture rwillmer  Â·  3Comments

IngvarKofoed picture IngvarKofoed  Â·  3Comments

rajjejosefsson picture rajjejosefsson  Â·  3Comments

sysmat picture sysmat  Â·  3Comments

hartjo picture hartjo  Â·  3Comments