Run Angular Project over an network

 

Step 1: make sure two systems (smart phone, pc, mac ) are connected with a same wifi newtork

Setp 2: if you are using window then follow below command to open run prompt other wise you can use terminal in your mac system

Step 3: window + R 

this will open run prompt

step 4: within run prompt you have to type cmd and press on ener button

step 5 : on cmd you can type ipconfig  to check what is the configuration of your IPV4 address


after that you can use below reference no 2 command that will run your project over whole network

1. ng server    Or  ng s -o

2. ng s -o --ssl --host <Place_of_your_system_ip_address>

like :

ng s -o --ssl --host 192.168.1.101


Comments

Popular posts from this blog

Become a Expert + Secret of Success -- ii

Change Detection

without writing media queries How to make responsive component