If you notice that your phone drops the WiFi connection, you may need to adjust the WiFi Sleep Mode setting. Go to Settings -> Wireless & Networks -> WiFi Settings press the Menu button and select Advanced. Go to Wi-Fi sleep policy. There are 3 choices:
- When screen turns off (default) A-ha! That's why my WiFi was disconnecting
- Never when plugged in
Select one of the "Never" settings.