Use preferences to set host address