add socket.timeout to external_ip exceptions catch