There may be a myriad of factors:
Make sure WiFi network is set to "Private" in all locations.
Check IP addresses of both the locations. Ensure that all access points or routers are configured to use the same subnet.
Open Device Manager > Network Adapters. select Properties, and go to the Power Management tab Uncheck Allow the computer to turn off this device to save power
Make sure Firewall configuration is same.