Firewall opened on port, Test-NetConnection fails

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 -Port 9092
WARNING: TCP connect to ( : 9092) failed
ComputerName           : 
RemoteAddress          : 
RemotePort             : 9092         
InterfaceAlias         : Wi-Fi        
SourceAddress          :
PingSucceeded          : True
PingReplyDetails (RTT) : 1 ms
TcpTestSucceeded       : False

Source: Windows Questions