autodetect now works correctly, including remembering previous IPs