我运行了一个教程,包括raspberry pi 3的HTTP应用程序。
在我的本地网络里,一切都很完美。我运行服务器,输入raspberry的浏览器本地IP (192.168.x.x)和"hello world“出现--很棒。但是,当我想从局域网到达外部的HTTP服务器时,我遇到了一个问题。我所做的: 1.转发路由器中的端口80;2.使用PowerShell中的以下命令打开raspberry pi中的端口80
netsh advfirewall firewall add rule name="Open 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="Open 80" dir=out action=allow protocol=TCP localport=80我得到了这样的回应:
Rule Name: Open 80
----------------------------------------------------------------------
Enabled: Yes
Direction: Out
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: TCP
LocalPort: 80
RemotePort: Any
Edge traversal: No
Action: Allow
Rule Name: Open 80
----------------------------------------------------------------------
Enabled: Yes
Direction: In
Profiles: Domain,Private,Public
Grouping:
LocalIP: Any
RemoteIP: Any
Protocol: TCP
LocalPort: 80
RemotePort: Any
Edge traversal: No
Action: Allow
Ok.我认为这证明了我的树莓有问题--它的设置。
发布于 2016-06-28 02:54:02
确保您在应用程序清单中选择了"Internet (Client & Server)“功能。您可以通过打开Package.appxmanifest文件并单击“功能”选项卡找到此设置。

发布于 2016-06-29 15:25:59
我解决了。
问题出在我的路由器设置上。我有两个NAT选项(Virtual安装程序和端口触发安装程序),我的设置如下:

删除NAT端口触发设置中的"web“设置解决了我的问题。运行在raspberry pi上的HTTP服务器对于外部世界是可见的。
我不知道为什么这些设置没有阻止HTTP服务器在膝上运行,但这是不同的故事。raspberry pi服务器的问题-解决了。
https://stackoverflow.com/questions/38020882
复制相似问题