Pick appropriate application port and host.