O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a web server

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.

Finding your IP address on Windows

On Windows, open a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required