端口转发阿帕奇
我希望可以从我的互联网 IP 地址访问 XAMPP。
问题是当我输入互联网 IP 地址时,会显示路由器登录页面。我认为它使用端口 80
。
我已手动将 IP 地址设置为 192.168.5.44
。
我已将 Apache 的默认端口从端口 80
更改为端口 6065
并将端口转发此端口。
可以使用 IP 地址 192.168.5.44:6065
访问它,
我已在路由器设置中转发 6065-6070 的端口。我已从 canyouseeme.org 确认可以从我的互联网 IP 地址访问端口 6065。
当我访问http://113.203.158.164:6065
时(113.203.158.164
是我的互联网IP地址,端口6065
是apache的)我得到一个错误。这让我很困惑,因为我的静态 IP 192.168.5.44:6065
打开了 XAMPP 页面。
Unable to connect
Firefox can't establish a connection to the server at 113.203.158.164:6065.
I want XAMPP to be accessible from my internet IP address.
The problem is that the router login page is displayed when I type in my internet IP address. I think it uses port 80
.
I have manually set my IP address to 192.168.5.44
.
I have changed the default port of Apache from port 80
to port 6065
and port forwarded this port.
It is accessible using the IP address 192.168.5.44:6065
I have forwarded the ports from 6065-6070 in my router settings. I have confirmed from canyouseeme.org that port 6065 is accessible from my internet IP address.
When I access http://113.203.158.164:6065
(113.203.158.164
is my internet IP address and port 6065
is of apache) I get an error. This confuses me because my static ip 192.168.5.44:6065
opens up the XAMPP page.
Unable to connect
Firefox can't establish a connection to the server at 113.203.158.164:6065.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的 XAMPP 配置可以通过列出的链接访问互联网,因此它正在工作。
也许这样不能映射到你自己的ip?
You XAMPP configuration is accessible to the internet via the listed link, so it is working.
Maybe it can't be mapped to your own ip this way?
老兄,你首先要明确一下你的概念:
1 你设置的IP 192.168.5.44,是你系统的本地IP。仅对您局域网中的所有系统可见。
2 您为apache配置的6065端口是您机器上用于apache运行服务的端口,与您的路由器上的端口没有关联。
3 因此,当您输入 http://192.168.5.44:6065 时,它始终可以从任何计算机位于 LAN 中,无论您的互联网路由器设置是什么
4 为了在线托管您的服务,您需要检查 113.203.158.164 是否是从您的网站获取的静态互联网 IP SP。
5 路由器的端口 6065 必须打开,注意:这与托管服务的系统中的端口 6065 不同。理想情况下,您可以在路由器设置中选择将端口 80 转发到 80。因此,默认情况下会转发 113.203.158.164 上的任何传入请求。
6 您必须在转发到选项中输入IP 192.168.5.44,并在端口号中输入192.168.5.44。 6065(现在,这代表您的系统上运行的服务的端口)在相邻选项中,这表示您在 113.203.158.164 :80/6065(您选择转发的端口)上收到的请求将转发到哪里!
Dude, you need to first clear your concepts :
1 The IP you set 192.168.5.44, is the local IP of your system. It will be visible to all the systems in your LAN only.
2 The port 6065 you configured for apache is the port of your machine used to apache to run its service, it is has no correlation with the ports on your router.
3 So, when you input http://192.168.5.44:6065 it will always work from any machine in your LAN , no matter what your router settings for internet are
4 For you to host your service online, you need to check that 113.203.158.164 is static internet IP obtained from your SP.
5 Port 6065 of your router must be open , NOTE : This is different from the port 6065 in your system in which your service is hosted. Ideally you could just select to forward port 80 to 80 in router settings. So that any incoming request on 113.203.158.164 is by default forwarded.
6 You must put the IP 192.168.5.44 in the option for forwarding to, and put the port no. 6065 (now, this stands for the port of your service , running on your system) in the adjoining option , this signifies where the request received on your 113.203.158.164 :80/6065 (whichever port you chose to forward) is forwarded to!