Sharing doesn't work for my two macs
I have two Macs-- an 201 iMac running El Capitan (10.11.60 and a 2015 Macbook running Catalina, (10.15.1).
File sharing works sometime, but very rarely. The iMac shares its internet connection over Wifi and the laptop can access the internet through that connection. Using the Network Browser, the iMac can see the laptop can see the laptop but the connection is denied. [See picture] The laptop can't even see the iMac.
I've read Apple's set up instructions and sharing should be working but it almost never does. I've gotten used to sharing files by Dropbox or Email despite the fact that the two computers are six inches away from each other.
Grateful for any help.
iMac 21.5", macOS 10.14