We do not know the exact firewall you are talking about but most windows software firewalls allow you to make rules based on IP address(es), port number(s), and application(s). This would be one way of making a rule to allow traffic to/from the four ports and yet still be pretty secure about it.