How can the inbound rules of Windows10 firewall take effect?

first explain my environment information:
Windows10 creates a virtual machine using hyper-v, and the virtual machine system is also Windows10.
the virtual switch for the virtual machine selected the default switch.
through the firewall log, it is found that the virtual machine is on a public network, and there is a clear record that the request of the virtual machine has been DROP. The
program is started with Visual Studio and uses port 9000.
as long as I turn off the firewall, the problem described below does not exist.

problem description:
I need to open port 9000 natively, so I added an inbound rule to the firewall.

90009000
90009000

ICMPping


I don"t know what else needs to be done for that port 9000 inbound rule to take effect.

after opening the firewall log, it was found that the request was dropped by DROP.

here is the log with fields added.

date       time     action protocol src-ip         dst-ip         src-port dst-port size tcpflags tcpsyn     tcpack tcpwin icmptype icmpcode info path
2018-06-19 21:48:57 DROP   TCP      172.31.204.237 172.31.204.225 53333    9000     48   S        2347351784 0      65535  -        -        -    RECEIVE
Mar.20,2021

@ liqi0816

is this a screenshot of this?


Although
is just a strange guess, it seems to have solved the problem of the subject, so it is still raised from the comments and left an answer for later readers.

if only to solve the problem, open the properties of that firewall rule, change the properties-> programs and services-> programs from "all programs that meet the specified conditions" to "this program", and specify the virtual machine / server. You can solve the problem.

Menu