Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing local server with MAMP/wordpress on mobile device?

I am currently developing a wordpress site locally using MAMP PRO, which obviously involves using a local database.

I would like to test this site on my iPhone via a remote link. I have managed to do this by typing the following into my mobile phone URL...

192.234.2.32:8888 

(IP Address : Port number)

The problem is the index page is displayed but with no CSS styling. Then when I click on another page, it says the page cannot be found

It seems it has connected to the server properly, but not to the wordpress database. (at least I think this is the problem)

Does anyone have any information on how to get this working or point me in the right direction? Do you need another application to do this, or can it be done with mamp/IP address etc?

Thanks in advance

like image 765
Adam Avatar asked May 05 '13 14:05

Adam


1 Answers

I prefer to use DNS to deal with local development for mobile. This way you can still use the same IP address for all your local sites, but have a different name for each one (NameBasedVirtualHosts)

like image 181
quickshiftin Avatar answered Sep 23 '22 14:09

quickshiftin