I had change the default localhost 4200 to localhost 4202 by using ng serve --host 0.0.0.0 --port 4202
and It works but once the session terminate the localhost automatically divert to localhost 4200. I have to again run the command to change port.
Is this the right way to change the Port or I can Change it permanently for a project.