无法查看网站(在 glassfish 家庭服务器中运行/路由器端口被转发)
我想向朋友展示我制作的网站。但我似乎无法让该网站可供网络的其他部分使用。
好的,详细信息是:
- 我创建了一个 jsp 网站
- 它托管在 GlassFish v3 上
- 我将端口 8080 转发到托管 GlassFish 的电脑(使用 这个)
就这样,我不知道还能做什么。我是网络开发新手,我尝试过在互联网上寻找答案,但没有运气。如果有人可以提供帮助,我们将不胜感激!
编辑:我正在使用 dyndns.org ddns。我也尝试过使用我的外部IP,但没有成功。
I would like to show the website I have made to a friend. But I just can't seem to get the website available to the rest of the web.
Ok, so the details are:
- I created a jsp website
- It is hosted on GlassFish v3
- I forwarded port 8080 to the pc hosting GlassFish (Tested with this)
With all this as is, I don't know what else to do. I am 'n newbie web developer and I have tried the internet for answers but no luck. If anyone can assist, it would be greatly appreciated!
EDIT: I have a dyndns.org ddns that I am using. I also tried using my external IP, but to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保 Glassfish 正在侦听 PC 的真实 IP 地址,即不是 127.0.0.1 (localhost)。如果它在本地主机上运行,那么您将能够从同一台计算机上看到它,但不能从其他任何地方看到它。
不过,我不是 glassfish 用户,所以我无法告诉您如何更改它。
Make sure Glassfish is listening on the PC's real IP address, i.e. not on 127.0.0.1 (localhost). If it's running on localhost, then you'll be able to see it from the same machine, but not from anywhere else.
I'm not a glassfish user, though, so I can't tell you how to go about changing it.