In this post I will cover how to check the firewall ports by the registry. Off course this can be done efficiently by Netsh but that will not be covered in this post.
To check the firewall ports in the registry open regedit and then the key below:
At this location you will find all your ports configured for your firewall.
If you want to find a certain rule just right click on the FirewallRules key and choose Find and search for the rule.
To add a rule do not edit the registry directly. Use Netsh or the GUI.