views:

27

answers:

1

hey guys, 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
A: 

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".

Tim
thank you, i edited my post. i found those two lines with "listen".
Ok the bind is correct. Have you tried to disable the OS X firewall?
Tim
my firewall is disabled!