xampp 并访问局域网

发布于 2024-10-06 03:16:53 字数 235 浏览 9 评论 0原文

我在物理机(Windows)和虚拟机(Fedorat)之间创建一个本地网络 我在 fedorat 上安装了 xampp,我想通过虚拟机的 ip 地址从我的物理机访问位于 /opt/lampp/htdocs/MyApplication 的 Web 应用程序 http://192.168.0.2/ 但它不起作用 我必须对 xampp 进行哪些更改才能使其可访问

I create a local network between my physical machine (windows) and my virtual machine (Fedorat)
I installed xampp on fedorat and I want to access my web application located in / opt / lampp / htdocs / MyApplication from my physical machine by ip address of the virtual machine
http://192.168.0.2/
But its not working
What changes must I do that on xampp to make it accessible

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦幻的味道 2024-10-13 03:16:53

您的网络服务器是否正在运行?是否可以在本地(从您的 Fedora VM)访问网络服务器?

你说的不工作是什么意思?有很多事情可能是错误的...您收到 404 了吗?暂停?你们的机器在同一个子网吗?您可以从 Windows ping 通您的 Fedora 机器吗?

Is your webserver running and is it possible to access the webserver locally (from your Fedora VM)?

What do you mean by not working? There are so many things that could be wrong... Do you receive a 404? Timeout? Are your machines on the same subnet? Are you able to ping your Fedora machine from Windows?

淡忘如思 2024-10-13 03:16:53

曾经遇到过类似的问题。就我而言,这是因为防火墙设置。

尝试将您自己的计算机连接到与虚拟机连接的同一路由器中的 LAN 接入点。

我没有太多技术。背景,但如果您将其缩小到这个特定案例,也许其他人可以帮助您。

干杯。

Had a similar problem once. In my case, it was because of firewall settings.

Try connecting your own machine to a LAN access point in the same router as the VM is connected.

I don't have much tech. background, but maybe if you narrow it to this specific case, someone else can help you.

Cheers.

怪我太投入 2024-10-13 03:16:53

我从物理机 ping 我的虚拟机,效果很好
我在物理机上安装 wamp 多久了,我设置了访问本地网络并从我的虚拟机访问
所以两台机器之间的网络运行得很好
我的问题不是关于两台机器之间网络的建立,而是如何配置可通过以下方式访问的 XAMPP
网络中的其他机器
(我已经在 Windows 上遇到了 wamp pararail 的问题,我通过配置 wamp 解决了这个问题,但我记得更多我所做的事情)

I ping my VM from my physical machine and it works very well
How long have I install wamp on my physical machine and I set up for access to local network and I accessed from my VM
So the network between two machines running very well
my question is not about the establishment of networks between the two machines but rather how to configure XAMPP that it is accessible by
other machine in network
(I was already a problem on windows with wamp parail I solved by configuring wamp but I recall more of what I did)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文