Use ip automatically if public hostname is nil.