I want to use 5000 instead of 4200.
I have tried to create a file on root name ember-cli
and put JSON according to the code below:
{ "port": 5000 }
But my app still runs on 4200 instead of 5000
Port 4200 is the default port chosen by Angular CLI. You can change port via Angular CLI command and angular. json file.
If you want to quit ng serve , you should use Ctrl+C instead, in which will also release the 4200 port.
The solution worked for me was
ng serve --port 4401
(You can change 4401 to whatever number you want)
Then launch browser -> http://localhost:4401/
Basically, I was having two Applications and with the help of the above approach now I am able to run both of them simultaneously in my development environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With