如何在wampp服务器中使用本地计算机ip地址执行PHP站点 [英] How to execute PHP site using Local machine ip address in wampp server

查看:76
本文介绍了如何在wampp服务器中使用本地计算机ip地址执行PHP站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i我在本地主机执行php网站:8080在wampp服务器上,当我尝试使用本地机器ip地址时出现错误,HTTP错误404.找不到请求的资源当我在我的本地机器ip地址尝试时,这是错误,请任何人帮助我

hi to all,

i am executing php site in localhost:8080 in wampp server, it's getting error when i try with local machine ip address, "HTTP Error 404. The requested resource is not found" this is the error when i try in my local machine ip address, please anyone help me

推荐答案

当你使用wampp服务器时要么使用localhost,要么使用127.0.0.1从wampp的www文件夹中执行任何操作。如果你在谈论你的局域网/ wlan的IP地址那么那就不行了。因为wampp是一个在你的电脑内运行的服务器。所以你的电脑的主机地址现在是127.0.0.1。如果您要从共享电脑上看到您的网站,那么您可能需要其他IP地址。
While you are using wampp server either you use localhost or you use 127.0.0.1 to execute anything from the www folder of wampp. If you are talking about the ip address which is for your lan/wlan then that's not gonna work. Because wampp is a server which is running inside your pc. So the host address of your pc is 127.0.0.1 now. If you gonna see your website from a shared pc, then you might need other ip address.


这篇关于如何在wampp服务器中使用本地计算机ip地址执行PHP站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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