Firstly, you will need to open up the Windows Firewall. So, go ahead and search for Windows Firewall and open it.
Now, in the menu in the left hand side, click on Inbound Rules. Scroll through the rules until you find, File and Printer Sharing (Echo Request - ICMPv4-In) . There should probably be 2 of those. Rick click the first rule, and click Enable Rule , do the same for the next one and you should be done!