Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

test local websites with mamp on iphone?

i wonder if it's possible to view my local test-environment set up with mamp on my iphone?

e.g. i'm using mamp-pro and i set up a domain http://mydomain.com which shows /htdocs/mydomain.com in my browser.

is there an easy way to view that page on my iphone as well. my iphone is in the same network - just my home network where my mac is in and my iphone is in. i pinged out the ip of my local mamp domain which is: 192.168.160.1 if i enter that one in my firefox i get a directory listing of all my htdocs folders. if my iphone is in the same network shouldn't it be possible to enter that ip as well? my mobile safari tells me that: Cannot Open Page - Safari could not open the page because the server stopped responding

am i wrong with this or is it probably just a firewall setting that doesn't allow me to view this ip on my iphone?

any idea what i'm doing wrong or any idea how i could achieve this?

thank you for your help!

found this in httpd.conf

#Listen 12.34.56.78:80
Listen 80
like image 334
matt Avatar asked Oct 31 '10 12:10

matt


People also ask

Can you use Mamp on IPAD?

Preview your work using the MAMP Viewer available on iOS and Android.

How do I access my Mamp website from another computer?

The Apache port used is 8888. To access your localhost on another Mac on your LAN, you need to type in it's Local Hostname. To find out the Local Hostname of this Mac, go to System Preferences > Sharing > Edit . Now you can access your hosts from a different Mac on your LAN.

What does Mamp Pro do?

MAMP Pro allows you to store your files in the cloud via Dropbox or OneDrive. You can store one, or all of your hosts in the cloud. This is a great way to protect you from accidentally deleting files on your projects, and allows you to work on sites on different computers.

Is MAMP for mac free?

MAMP is a free, local server environment that can be installed under macOS and Windows with just a few clicks.


2 Answers

Did you try appending :8888 to the end of your url or local server's IP?

192.168.x.xxx:8888
like image 168
Jennifer Avatar answered Sep 23 '22 00:09

Jennifer


Did you check the bind interface of your Apache installation? MAMP may bind to localhost only which means that your webserver is only accessable from the machine it runs on. Check the httpd.conf somewhere in /Applications/Mamp.app/ for a line starting with "Listen".

like image 29
BlueDog Avatar answered Sep 23 '22 00:09

BlueDog