PIP_INTERFACE_INFO if_info;
ulong size=0;
DWORD result;
result=GetInterfaceInfo(NULL,&size);
// check result here
if_info=(PIP_INTERFACE_INFO)malloc(size);
if(if_info != NULL)
{
result=GetInterfaceInfo(if_info,&size);
if(IpRenewAddress(&if_info->Adapter[0]) == NO_ERROR)
sockClient.Connect(destination, PORT)
i think that after renew, it have not get a ip and its start connect ..
can someone help ..