Teamviewer will not run when Mac computer is logged off

I installed Teamviewer on Mac with El Capitan, and finally was able to do the wake on Lan when computer goes to sleep.  The issue is that what if I log out of the computer and want to connect to it after that?  This works WITHOUT issue on Windows 10 PC, but does not work on a Mac.  Am I missing something here?