While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.
Getting Raspberries to talk to your Android devices
Getting started with Raspberry Pi doesn't have to be hard.
Raspberry Pi is going Windows
Making Raspberry Pi talk to each other in Python