Appium test mobile device over WiFi

This post is a compilation of the Appium discussion thread here that describes the commands for testing the mobile device over the WiFi. Here is a python script for the commands. You would need python 3 and your mobile device IP address for this.