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.
On Windows, open a command prompt (cmd.exe) and type ipconfig.
You should see something like the following screenshot:

The ipconfig command will output some information about your network connections; the actual output will be different depending on your setup and how you are connected to the network, but you are looking for the marked line in the following screenshot:

Write down the IP address for future reference.
On OSX, you can find your IP address from System Preferences. Perform the following steps to find your IP address:

On Linux, open a terminal window and use the ifconfig command to get your IP address. If you are connecting using WIFI, type:
ifconfig wlanO
If you are connecting using Ethernet (cable), type:
ifconfig ethO
You will see output like the following screenshot:

You should see the IP address between inet addr and Bcast.
Before we continue, let's make sure that the IP address is correct. Replace localhost in your browser address bar with your IP address, and make sure that the page loads the same way. For instance, if you determined that your IP address is 192.168.0.1, then the URL would start with http://192.168.0.1/. Next, open the web browser on your mobile device and enter the same test URL. You should see that page opens in your mobile device's web browser.
If you are having problems with this step, make sure that WIFI is enabled on your mobile device and that it is connecting to the same network as your development machine.