Access Local Web Server

Other – Access Local Web Server From Any Device on the Network

Get the latest from
Sniffle Valve

Sniffle Valve

Consider buying Sniffle Valve a coffee  

Book a one-on-one online training session

Note: To copy any code presented in these tutorials, hover over the code and select the Toggle RAW Code icon raw code icon

When using a local web server to work on your WordPress website it would be nice to be able to view the results on other devices, such as mobile phones and tablets.

There are emulators of all sorts, but nothing is quite as good as the real thing. And most folks have at least a mobile phone that is capable of doing so.

However, getting your local web server to be “seen” on other devices connected to the local network seemed to take a bit of “black magic” to happen.

No longer. At least not for Windows users of XAMPP and Laragon, the two local web servers I have tested. In fact, it is super simple!

UPDATE: 08 OCT 2017

Tested with my Mac Mini and it works on MAMP. Note that with the default MAMP settings, you will have to add the port number to the Mac’s IP address like so:

iPhone screenshot
Screenshot of local site on the iPhone 6s

The video shows you how to use the IP address of the machine where the local web server is running to be able to access the sites on it using any computer or device that is connected to the same network.

Here is where I found this method on Stack Overflow.

2 thoughts on “Other – Access Local Web Server From Any Device on the Network”

  1. Avatar

    Wow thank you so much sir..i have been looking for this method for over two years..i have already gave up but you really help me to achieve my dreams thank you so much may God help you

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top