only set host name when in client mode