get master ip