Wrap socket calls to catch IOErrors.
Update default address.