Remotely Power on Kodi

Hi. I have just recently figured out how to control kodi from a windows
app that i created in VB6.

I am now trying to find out how i can issue a command to wake the kodi
device up.

I use YATSE on my mobile phone and this has a power button that does
wake the device, so i know its possible.

does any one know how to accomplish this. Is there a certain port that i need to send
a command etc

many thanks