if you have an openwrt router this is very easy to do. i have a script on my main working machine that will ssh openwrt and turn on the server and this work well