Posted in Web dev on 8th March 2012

View MAMP Pro sites across local network

I think MAMP Pro is a great tool for development if you don't want to go through having to set to vhosts for every project, but I found it annoying that I couldn't view the work on my iPad/iPhone for developing.

I googled, but with no luck. Then the answer popped into my head so I thought I'd share it with the world.

All you need to do is set a port on you site. I tend to create a secondary version point to the same place. So as an example, the main dev site could be Great, works locally and across the network on any machine if I change the hosts file.

Next, I can create a second host and set a port, like this:


A quick visit to from my iPad or iPhone and, hooray, cross platform local development!

Hope it helps others! =]


  • Matthew Ellis

    5th September 2012

    Brilliant! Thanks Phil - I've been searching for how to do this for a while. Thanks for sharing!

  • Alex

    3rd March 2013

    Hello, a great tip
    ut when I load the website, it doesn't show up the CSS and JS scripts properly. The path shows like
    nd we need path
    ow to fix that do you know?

    • Phil

      4th March 2013

      Hi Alex, You'd need to ensure that Wordpress is set up to use your port as the default address There are a couple of places where it is stored in the database in the settings. Siteurl is one I think so to get Wordpress to work nicely, those would need to be set as

  • Alexandra Nuijen

    12th April 2013

    Thanks a lot, Phil. Worked great!

Comments have been disabled on this post