my macbook pro no longer connects to my imac
I have a MacBook Pro and an iMac, both running Big Sur and both have access to my wifi. Up until a few days ago I was able to access files on the iMac from my MacBook. The MacBook no longer can find the iMac.
I go to Finder > Go > Connect to server and enter smb:// and the IP address of the iMac. It tries connecting for a minute then comes back with "There was a problem connecting to server".
I am the only one with access to either of these devices and have made no changes that would affect connectivity. I checked my wifi and both devices report no problems with the network. I double-checked that I still have file sharing activated on both devices.
Oddly, I can still access the MacBook from the iMac.
MacBook Pro 15″, macOS 11.6