My objective is to do a port scanner in windows and find the ports which are open. Suppose, I run an application which opens up a port 8000. Now I create a new inbound rule to block all incoming packets on port 8000. So now is the port technically open?
My requirement: Find all the ports which are open? That is, find the ports which are allowed by firewall and are open.
The ports which are blocked by firewall are anyway going to be shown as "open" on netstat but I do not want that information since it has already been taken care of.
Any ideas on how to proceed with it?