Windows防火墙:如何允许特定端口(例如8080)上的流量?


18

我正在尝试配置Team Foundation Server,以便:

  1. 可从我的家庭网络中访问它,并且
  2. 该网站可通过互联网访问

我对第1点有疑问:

当我http://192.168.1.106:8080/tfs/web/从192.168.1.106本地访问时,它可以工作。

当我从家庭网络中的另一台PC访问同一网站时,仅当我关闭防火墙时,上述URL才有效192.168.1.106

有人可以告诉我具体如何在不关闭Windows防火墙的情况下允许端口8080上的通信吗?看来,我指定的例外是为了在盒子上列出需要沟通的程序。IIS是我需要为其例外的程序吗?如何指定该端口上的网站流量应允许使用8080端口流量?

我希望以后在点2上取得成功,但我认为应该首先完成点1。我希望有问题。

Answers:


25

Create a new inbound rule with Windows Firewall with Advanced Security. The type in this case would be port, then on the next page you enter 8080 as the port. On the next page select either "Allow the connection", or "Allow the connection if it is secure". Select when the rule applies, and finally give the rule a name.

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.