Avast will not allow me to print to me network printer

How do I configure the firewall to allow printing to a network printer. I have to turn the firewall off to use the printer. When the firewall is on the printer shows offline. When I turn the firewall off the printer shows ready to print. I don’t know why I am having problems with this printer, I used to be able to print to it until I renewed my subscription. I can still print to other printers on the network. how do i fix this problem?

It is just a matter of setting up the firewall correctly unless there is a bug somewhere.
Look in the firewall log file to see what it blocks for the printer and create a rule for it.
https://www.avast.com/faq.php?article=AVKB25

This appears to be caused by the port scan detection, at least on my PC.

I can either shut off the firewall or go to my Avast home page, select Firewall active then go to settings > advanced > uncheck port scan detection

This is apparently used to block hackers who will scan for devices connected to your PC. Unfortunately, the printer will scan as well and Avast automatically blocks it and blacklists it.

I have that much figured out but I’m a newb and don’t know how to get Avast to stop blocking my printer without turning off the firewall or turning off the automatic port scan detection. So I am turning off the scan detection when I need to print/scan until I figure this out.

*EDIT:

After reading the link posted by the guy above I went into application rules and looked up my printer and clicked the fourth pip on anything related to printer. (I think it’s any out and friends in). I had earlier added the ip address of my friend’s list but not sure that was even needed.
For anyone not familiar with it, read his link and after you click the fourth lvl you won’t need to do anything else, it applies a set rule automatically.