- I have a MacBook
- I have macOS Mojave 10.14.5 (18F203)
- I enabled System Preferences > Energy Saver > Power Adapter > Wake for Wi-Fi network access
- I enabled System Preferences > Security & Privacy > Privacy > Accessibility > TeamViewer and TeamViewer_Desktop
Even if I connect my MacBook to power, if the lid is closed, so it's sleeping, it doesn't show up as online in the list, nor can I connect to it. If I wake it, then I connect (from my iPhone), and then I close the lid, it immediately stops the connection and it goes back to the offline list.
What to do?