Check to make sure that your router's wifi signal is good in the area where your thermostat is located. If the signal isn't good, consider getting a wireless range extender to improve the wifi signal. Also, check to see if you can assign a dedicated IP address to your Nest so that it doesn't expire and change on your Nest unexpectedly.