I've been using WOL for years and all of a sudden it recently stopped working. After double and triple checking my settings, I found a post online that suggested reverting to a previous version of TeamViewer.
I installed VERSION 15.39.6 and now WOL works again. Be sure to go to Options - Advanced and set Check for new version and Install new versions automatically to Never. Note: I installed 15.39.6 on the PC from which I wake up the remote PC. The remote still has 15.42.8.
Perhaps this will help others.