CIPAddressCtrl m_ip;
// TODO: Add extra initialization here
m_ip.SetAddress(127,0,0,1);
// TODO: Add your control notification handler code here
UpdateData(TRUE);
DWORD ip;
m_ip.GetAddress(ip);
//
ZeroMemory(&serverAddr,sizeof(serverAddr));
serverAddr.sin_family = AF_INET;
serverAddr.sin_addr.S_un.S_addr = htonl(ip);
serverAddr.sin_port = htons(m_port);