用imp在mamp上测试本地网站? [英] test local websites with mamp on iphone?

查看:129
本文介绍了用imp在mamp上测试本地网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能在我的iphone上查看我在本地测试环境设置mamp?

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

例如。我正在使用mamp-pro并且我设置了一个域 http://mydomain.com ,其中显示了/ htdocs / mydomain。 com在我的浏览器中。

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

有一种简单的方法可以在我的iphone上查看该页面。
我的iphone在同一个网络中 - 只是我的家庭网络,我的Mac所在的地方和我的iphone在。我发现我的本地mamp域名的ip是:192.168.160.1
如果我进入在我的firefox中,我得到了所有htdocs文件夹的目录列表。
,如果我的iphone在同一网络中,那么也不应该输入该IP吗?
my mobile safari告诉我:无法打开页面 - Safari无法打开页面,因为服务器停止响应

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这个错误,或者它可能只是一个防火墙设置,不允许我在我的iPhone上查看此IP?

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?

感谢您的帮助!

在httpd.conf中找到了这个/ p>

found this in httpd.conf

#Listen 12.34.56.78:80
Listen 80


推荐答案

您是否尝试在网址末尾追加:8888 还是本地服务器的IP?

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

192.168.x.xxx:8888

这篇关于用imp在mamp上测试本地网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆