//methods public void ScanAddresses() { _ownMacAddrByte = _device.GetNetworkInterface().GetPhysicalAddress().GetAddressBytes(); _ownMacAddr = _device.GetMacAddress(); _ownIpAddrByte = _device.getIpAddressBytes(); if (!_bgWorker.IsBusy) { _bgWorker.RunWorkerAsync(); } else { throw new Exception("Scanning is still ongoing, cannot start another scan!"); } }