My iPhone shows my iMac is offline when iMac is on sleeping mode. Both devices are connected with the same wifi. My iPhone has access to iMac when it's awake.
Can someone assist me please how to fix it.
In order for your mobile devices to access your files, your computer has to be on and it cannot be in a "hard sleep" state. That means you cannot set you iMac to sleep using the Apple menu (and if you have a laptop, the screen needs to be up/open). That is due to how sleep states are configured and is not something that we can control or change. You can read more about it here: