Connect devices

I want build an application that connects to my PC in order to remote control it
what is the best way to connect them ?

i can use a third party to send informations between pc and phone but i want to connect them via network to make communication fast

and can i use usb port to do that ?