make hostserver and hostport configurable to be either public or local
through settings