简体   繁体   English

通过互联网IP地址从一台计算机访问xampp到另一台计算机

[英]Access xampp from one computer to another computer via internet ip address

I was trying to access my xampp from another computer ,it is showing as forbidden error.Then i googled for answer for that they were telling some settings to change in httpd.conf file which is there in apache folder as follows:我试图从另一台计算机访问我的 xampp,它显示为禁止错误。然后我在 google 上搜索答案,因为他们告诉 apache 文件夹中的 httpd.conf 文件中的一些设置要更改,如下所示:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1

#Order Deny,Allow
#Deny from all
#Allow from 127.0.0.1
#Allow from ::1

But it is not working it still shows the same error.can somebody help me to solve this.但它不起作用它仍然显示相同的错误。有人可以帮我解决这个问题。

And i want access my xampp from multiple computers as well can you please provide a solution for this .而且我也想从多台计算机访问我的 xampp,您能否为此提供一个解决方案。 Thanks.谢谢。

try add new line尝试添加新行

Allow from {other computer ip}

or for all或为所有人

Order Deny,Allow
Allow from all

After change, restart xamp修改后重启xamp

you can try你可以试试

connectify连接

install it, start it and connect your other machines with your system hotspot, then other computer on the same network can access your xampp server through your system ip like安装它,启动它并将您的其他机器与您的系统热点连接,然后同一网络上的其他计算机可以通过您的系统ip访问您的xampp服务器,例如

http://192.168.9.3/your_project

where 192.168.9.3 is your system IP, enjoy其中 192.168.9.3 是您的系统 IP,享受

If you have domain available try assigning domain to your server IP如果您有可用的域,请尝试将域分配给您的服务器 IP

Worked for me at last最后为我工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM