Recently I installed Docker on my Windows 10 computer to test it out as a local tool for WordPress development. I followed the instructions and used a handy script by 10up to quickly set up an optimal WordPress environment.
Everything was going so well until I encountered an error in the installation. Namely, my firewall was blocking access to my Drives. Annoying!
To the Google!
Hours of searches came up with inadequate solutions because each firewall has its own unique User Interface and some of the solutions were only tempory and needed to be re-applied after a reboot. I knew that a port was being blocked, I just wasn’t sure exactly where to change it.
Eventually, I found it, so to save you time, here it is.
Open up Kaspersky and select Settings (bottom left) and then select Protection from the side menu and select Firewall.
Open Configure packet rules.
Select Local Services (TCP) and Edit.
Finally, remove the port number from your Local ports (in my case 445) and save.
You should now be able to share your drive without disabling Kaspersky firewall or applying any other temporary “fixes“.