Safari 无法连接到 Mac 上的 Xampp 的 localhost。

huangapple go评论75阅读模式
英文:

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)

general tab xampp

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.

network tab xampp

huangapple
  • 本文由 发表于 2020年1月3日 22:18:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/59580128.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定