How to setup TeamViewer wake up on lan on MacBook Air
To enable Wake-on-LAN, open System Preferences → Energy Saver and check ‘Wake for Wi-Fi network access’. 

Mac uses the standard WoL port 9.

Your setup will work if you have another device on the local subnet to sent the wake packer or if you can take advantage of iCloud and bonjour sleeep proxy so that naother Apple device like Apple TV can send the wake request by proxy.