选择特定程序时,Windows防火墙阻止端口

时间:2018-03-12 15:53:30

标签: asp.net-web-api windows-firewall

我开发了一个带有asp.net webapi服务器的C#应用​​程序。当我从本地机器发送请求时,它工作正常。然后我创建了一个传入防火墙规则来打开端口。

问题:当我将规则限制为我的特定可执行文件时,网络上的其他设备无法访问我的服务器。将设置更改为"所有程序"让一切都恢复正常。

您是否知道为什么这不适用于所选的特定可执行文件?

Windows Firewall Settings

修改

这是我的配置(来自Get-NetFirewallRule)。

Name                  : {49D367A1-E670-4A4A-9FC1-ED91A38C35BF}
DisplayName           : Android Handoff (private)
Description           :
DisplayGroup          :
Group                 :
Enabled               : True
Profile               : Private
Platform              : {}
Direction             : Inbound
Action                : Allow
EdgeTraversalPolicy   : Allow
LooseSourceMapping    : False
LocalOnlyMapping      : False
Owner                 :
PrimaryStatus         : OK
Status                : Die Regel wurde erfolgreich vom Speicher aus analysiert. (65536)
EnforcementStatus     : NotApplicable
PolicyStoreSource     : PersistentStore
PolicyStoreSourceType : Local
来自UI的

设置:

Protocol and Ports:  
- local port: 9000  
- remote port: any  
Scope:  
- local IP: any  
- remote IP: local subnet  
Advanced:  
- Edge exception: allowed  
- profile:  private and domain
Programs and Services:  
- program: explained above  
- application packages: all  
- services: all  
- depots: all  
General:  
- action: allow connection  

0 个答案:

没有答案
相关问题