public void SetAdapter(NetworkAdapter aAdapter)
 {
     lock (iLock)
     {
         if (aAdapter != null)
         {
             iAdapterAddress = new IPAddress(aAdapter.Address());
         }
         else
         {
             aAdapter = null;
         }
         foreach (CpDeviceAdvanced d in iDeviceListAdvanced)
         {
             d.SetAdapterAddress(iAdapterAddress);
         }
     }
 }