If you have an Android device that puts the Wi-Fi connection to sleep when the screen turns off, please do the following procedure:
1. Navigate to 'Settings > Wireless & networks > Wi-Fi Settings'
2. Click the menu button on your device and select 'Advanced'
3. Click on 'Wi-Fi sleep policy' and select 'Never'