see this guide, but ignore the wifi related parts
https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors