Make sure they are both in the same workgroup
Make sure these are enabled on both devices under the network adapter properties
Make sure the following two services are enabled and running
Also verify your firewall profile is set to private
From a powershell prompt you can type
Get-NetConnectionProfile and look at the NetworkCategory property it should say Private