Follow the steps to allow printer through Windows Defender Firewall on your Windows 11/10 PC:
1. Click on the taskbar search icon.
2. Type 'control panel'.
3. Click on Open on the right panel.
4. Switch the Control Panel view to small icons.
5. Select Windows Defender Firewall. Read more here.