title: Difference between ng serve --port 4200 and ng serve --host ip:4200
body: <p>How can I serve the Angular application on the same port one in my localhost by ng serve command and one in my IPv4 address allocated by my router by ng serve --host 192.168.12.100 running on the same port i.e 4200 and I cannot make two application run on the same port using ng serve twice it gives error another application is running on the same port and I also know we can change the default port by ng serve --port 4000</p>
  
  <p>Running the same application twice in a different environment</p>
  
  <p>ng serve 
  ng serve --host ip</p>
  
  <p>here ip is the IPv4 address allocated to the system</p>