Added Error check to see if WiFi enabled and added support for ethernet connections