Lonce Wyse
Communication & New Media
lonce.wyse@cnm.nus.sg
1) Runs a server program
2) Runs your page/program
(in the browser)
0) Your web page
waiting to be served.
Server and browser can run on the same machine
https://en.wikipedia.org/wiki/Main_Page
[128.199.159.233]
DNS map to
ip address:
LAN
(eg. NUS)
Address visible to others within same network
Address translation
Router
http://192.168.2.120/Your_Page.html
Your local ip address
Your web page
What is your (local) ip address?
Mac computers:
ifconfig | grep "inet "
Windows computers:
ipconfig
Your address will something like:
192.168.1.xxx or 172.23.x.xxx
So let's write this program (in nodejs) !
1) Runs a server program
2) Runs your page/program
(in the browser)
0) Your web page
waiting to be served.
Server and browser can run on the same machine