Strange behavior, i working on configuring Kafka broker on my home server PC and trying to connect from another computer over wifi. The firewall port is opened on 9092 using following command
netsh advfirewall firewall add rule name="TCP Port 9092" dir=in
action=allow protocol=TCP localport=9092
However when i try to use Test-NetConnection to test the port connectivity it fails. I cannot connect to any port that is configured as open in windows firewall settings not sure why.
PS C:Usersraman> Test-NetConnection 10.58.35.113 -Port 9092 WARNING: TCP connect to (10.58.35.113 : 9092) failed ComputerName : 10.58.35.113 RemoteAddress : 10.58.35.113 RemotePort : 9092 InterfaceAlias : Wi-Fi SourceAddress : 10.58.35.134 PingSucceeded : True PingReplyDetails (RTT) : 1 ms TcpTestSucceeded : False
Source: Windows Questions