英文:
safari con't connect to localhost Xampp in Mac
问题
我在我的Mac上首次下载了Xampp,服务器正在运行,但当我想访问我的应用程序时,Safari显示无法连接到服务器。有人知道我的问题在哪里吗?
英文:
I downloaded Xampp in my Mac for first time, the server is working but when I want to go to my application show that safari can not connect to server.
does any one know where is my problem ?
答案1
得分: 0
我假设您已经安装了最新版本的XAMPP。
您可以通过单击“转到应用程序”按钮或在XAMPP中显示的IP地址后跟“/dashboard/”或您的浏览器(例如192.168.64.2/dashboard,如图所示)来访问您的应用程序。
如果您已经尝试过这个方法,问题可能与XAMPP中的网络配置有关。
创建一个新的规则,将LocalPort 80转发到RemotePort 80,并选中“要求本地”复选框。
然后启用规则,并在浏览器中使用“localhost/dashboard/”进行测试。
英文:
I assume that you have the latest version of XAMPP.
You can reach your application by clicking on the button "Go to Application" or writing your IP address showed in XAMPP followed by "/dashboard/" or your browser (e.g 192.168.64.2/dashboard like the image shows)
If you have already tried this, the problem might be related to the network configuration in XAMPP.
Create a new rule that forward the LocalPort 80 to the RemotePort 80, and check the "Require Local" checkbox.
After that, enable the rule and test it using "localhost/dashboard/" in your browser.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论