Made ip/domain optional