Because we'll view the examples in this chapter on a mobile device with a browser that does not have direct access to your development machine, we'll need to serve them through a web server and access them using the HTTP protocol. Your computer also needs to be connected to the same Local Area Network (LAN) as your mobile device.
We've already been using a web server with the samples using the URL http://localhost/
. This URL uses the name localhost
, a special name that tells the web browser to connect to the local machine. This is great for your desktop browser, but it isn't going to work for our mobile device. You'll need to find the IP address of your computer on the LAN.