Return "localhost" when offline
Register with "localhost" when offline

Merge branch 'iss109-work-when-offline'