Answers for "ng serve host 0.0.0.0"

5

angular open poort in network

ng serve --host 0.0.0.0 --disable-host-check
Posted by: Guest on June-16-2020
2

ng serve local network

CLI command
	ng serve --host 0.0.0.0

Or add to package.json
    "scripts": {
        "local-start": "ng serve --host 0.0.0.0"
    }
Posted by: Guest on September-29-2020
0

ng serve host 0.0.0.0

ng serve --host 0.0.0.0    
ng serve --open --host 0.0.0.0 --disable-host-check

or in angular.json add this config
 "serve": {
      "builder": "@angular-devkit/build-angular:dev-server",
      "options": {
        "browserTarget": "project:build",
        "host": "0.0.0.0"
      },
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language