-
Notifications
You must be signed in to change notification settings - Fork 12k
ng serve error localhost could NOT be bound #2587
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
Comments
It seems like there is some problem binding to localhost. Can you try |
surfer-172-29-10-205-server:frontend philipplubeck$ ng serve --host 0.0.0.0 |
It looks like using |
getting an 403 Forbidden: incorrect proxy service was requested error, while loading the page on the server : "http://0.0.0.0:4200". Any help please. Fix (incase, if anyone got stumbled like me) : use your ip instead of "0.0.0.0" while loading the page ie "your ip":4200. |
localhost:4200 was working before. Is there a way to get that working again rather than do the lengthy 0.0.0.0 hack? |
If someone still phasing this(mac os), you need to edit |
This happens when you change custom hostname |
I faced the same issue. I tried everything but nothing workout. Even I created a fresh project, but ng-serve failed. Then you know what I did, hope it may work for you. |
I have same issue... blue in the face nothing works and the /etc/hosts file is being hacked up I have a node.js koa ssl server running fineon monogd with the domain name I purchased from rapidSSL and my host name serves up rest friendly JSON like butter off of the node.s koa server beautifully Building and running the angular app with SSL certificates runs ok but I cannot go prod with LOCALHOST the url keeps saying connection is NOT private So I need this --host option to work and it wont I can run xampp and that will intercept any hits to my domain name on port 80 over SSL at which point I proxy into my node.js but I cannot get this beyond localhost Provided host mydomainname.com could NOT be bound. Please provide a different host address or hostname cli folks need to allocate a senior developer(s) to iron out this feature its preventing production in the field
??? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
angular-cli: 1.0.0-beta.16
node: 4.6.0
os: darwin x64
Repro steps.
The log given by the failure.
ng serve
Provided host localhost could NOT be bound. Please provide a different host address or hostname
Error: Provided host localhost could NOT be bound. Please provide a different host address or hostname
at Error (native)
at /usr/local/lib/node_modules/angular-cli/node_modules/portfinder/lib/portfinder.js:139:27
at /usr/local/lib/node_modules/angular-cli/node_modules/portfinder/node_modules/async/lib/async.js:52:16
at /usr/local/lib/node_modules/angular-cli/node_modules/portfinder/node_modules/async/lib/async.js:264:21
at /usr/local/lib/node_modules/angular-cli/node_modules/portfinder/node_modules/async/lib/async.js:44:16
at /usr/local/lib/node_modules/angular-cli/node_modules/portfinder/lib/portfinder.js:117:16
at Server.onError (/usr/local/lib/node_modules/angular-cli/node_modules/portfinder/lib/portfinder.js:54:14)
at Server.g (events.js:260:16)
at emitOne (events.js:77:13)
at Server.emit (events.js:169:7)
at emitErrorNT (net.js:1269:8)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: