First of all please make sure you are not trying to use Homegroup.
It doesn't exist in Windows 10 anymore.
Please check if the following services are running:
- Function Discovery Provider Host (FDPHost)
- Function Discovery Resource Publication (FDResPub)
- SSDP Discovery Service
Please check if:
- file and printer sharing TURNED ON on both computers
- network discovery TURNED ON on both computers
- NetBIOS over TCP is enabled
What happens when you try to access the shared file/folder by typing the IP address in File Explorer?
something like \\192.168.1.2\shared