Is it possible to run appium test, when device and system are connected to different networks

In my office, due to some restrictions, I can’t connect the device via USB. Also the device and system are connected to different networks. Is there a way to run appium in this case?