how to specify a port in angular code example Example 1: how to assign port in angular ng serve --port 4401 Example 2: how to use another port in angular ng serve --port 4300