check host *and* port before returning local ui