                     return
                 dbg('it is running')
                 address =
-                    host         : @host
+                    host         : project?.getIn(['state', 'ip'])
                     port         : LOCAL_HUB_PORT
                     secret_token : @getIn(['status', 'secret_token'])
                 if not address.secret_token

        delete @logger
        delete @project_id
        delete @compute_server
        delete @host
        delete @is_ready
        # Make sure nothing else reacts to changes on this ProjectClient, since they won't happen.
        @removeAllListeners()

# client code.
class Project extends EventEmitter
    constructor: (@client, @project_id, @logger, @database) ->
        dbg = @dbg('constructor')
        dbg("initializing")

