Client isolation while using Internet Sharing over WiFi
I guess you have to turn off the Firewall in your iMac or at least go the Firewall setting and turn off "Enable Stealth mode" if this is ON. You can test first with this and if this don't help, then you can turn off Firewall fully on your iMac. It should work in this way. Let me know how it goes.