How to enable wordpress website locally on network and via localhost


Staff member
My wordpress site works fine on my mac via localhost, using Xammp. I want to view the site on my iPhone. So I type in and voila, it brings up my localhost directory. I then click on the site in question and the content is there but no styling or images. I realise that this is because the paths to all the resources is hardcoded into the wordpress database. So when I am accessing the url via on my iPhone, it's looking for all the resources using a base url of localhost/mywebsitename. Localhost path doesn't exist on my iPhone, only does.

So has anyone found a solution to this little issue? How can I see a wordpress installation by ip address and by localhost access?