I know there is a method to control an iPhone from a Mac if you connect both an iPhone and a Mac to the same WiFi network, as described here.
For my case, both devices need to reside in different WiFi networks. What I am looking for is a method to achieve the control with connecting the two machines using bluetooth or cable.