Set ddp endpoint automatically