How to view a web page on a mobile device from a server running locally on my computer

When developing a website, I like to run it locally on my computer. This allows me to quickly see the changes I have made. But running the web server locally means I cannot view it on my mobile. How do I solve this? By setting the web server to listen on instead. Now I can see my work from my mobile! But what is Let’s explore.

Running a web server locally means it is listening to the IP Address. This is the loopback address and it does not pass any packets to the network interface card(s). This means the web server is only listening to requests that originate from the host computer. So, the web server needs to listen to another address. Enter the IP Address. This IP Address means to listen to “all IPv4 addresses on the local machine”. My computer has an IP Address of, so the web server will listen for requests on that IP Address. It will also still listen to On my mobile I can go to and see my site. Note: your mobile device will need to be on the same network as your host machine.

Some examples:


jekyll serve --watch --drafts --host

On my mobile device I would enter the url of:


from flask import Flask
app = Flask(__name__)

def hello():
    return "Hello World!"

if __name__ == "__main__":'')

On my mobile device I would enter the url of:

But, why use instead of You can use your IP Address instead. But if your IP Address changes you will need to remember to change it in your web server. Also, using allows you to still access your site via on your host computer.