0.0.0.0
this makes the website available to the devices in the same network outside the machine OS
jekyll
bundle exec jekyll serve --host 0.0.0.0
angular
ng serve --host 0.0.0.0
this can be accessed by a different device on the same router network through a browser by knowing the local IP address of the machine that’s serving the website
http://(local-ip-of-machine):(default-port)
# example
http://192.168.0.5:4000
0.0.0.0
still makes the website available on localhost:default-port
locally on the machine
0.0.0.0:4000
0.0.0.0:4200
alternative is to serve website a different port on 0.0.0.0
jekyll
bundle exec jekyll serve --host 0.0.0.0 --port 5310
angular
ng serve --host 0.0.0.0 --port 4800