Wake on lan failed because teamviewer disconnected when PC sleep

I use Windows 10 operation system, and I want to set wake on lan by using teamviewer.

All the settings are done, but when I turn my PC into sleeping mode and click wake up button on teamviewer Android version, there is no response on my PC.

Then I turn on my PC by pushing power on button physically, I saw a red exclamation symbol on teamviewer, after few seconds , the red exclamation symbol disappeared then teamviewer connection work normally.

I think wake on lan fail is because after I turn my PC into sleep mode, the teamviewer network is disconnected, how do I fix this problem???

Tagged: