MMLanScan icon indicating copy to clipboard operation
MMLanScan copied to clipboard

Duplicates

Open matt-matt1 opened this issue 5 years ago • 4 comments

results: (one cell contains:) 192.168.1.25 / 255.255.255.0 (another cell contains:) 192.168.1.25 mac F0:24...(abbreviated)

Why is this repeated? (One has subnet-mask, one has mac address)

matt-matt1 avatar Feb 13 '20 19:02 matt-matt1

I am also getting repeat problem. one entry has mac address, other don't have. printing the console output here

lanScanDidFindNewDevice: Optional(<MMDevice: 0x28097b100>)
device.brand: Optional("")
device.hostname: awaiss-iphone
device.ipAddress: 192.168.10.9


lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c740>)
device.brand: Optional("")
device.hostname: awaiss-iphone
device.ipAddress: 192.168.10.9
device.macAddress: 02:00:00:00:00:00


lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c640>)
device.brand: Optional("")
device.hostname: awaiss-mac-mini
device.ipAddress: 192.168.10.8
device.macAddress: 02:00:00:00:00:00


lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c340>)
device.brand: Optional("")
device.hostname: roguepixel
device.ipAddress: 192.168.10.5
device.macAddress: 02:00:00:00:00:00


lanScanDidFindNewDevice: Optional(<MMDevice: 0x2809669c0>)
device.brand: Optional("")
device.hostname: myrouter.home
device.ipAddress: 192.168.10.1
device.macAddress: 02:00:00:00:00:00


lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c540>)
device.brand: Optional("")
device.hostname: galaxy-j7-2016
device.ipAddress: 192.168.10.7
device.macAddress: 02:00:00:00:00:00


lanScanDidFinishScanning with status: MMLanScannerStatus(rawValue: 0)

AwaisFayyaz avatar Jul 07 '20 10:07 AwaisFayyaz

I am also getting repeat problem. one entry has mac address, other don't have. printing the console output here


lanScanDidFindNewDevice: Optional(<MMDevice: 0x28097b100>)

device.brand: Optional("")

device.hostname: awaiss-iphone

device.ipAddress: 192.168.10.9





lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c740>)

device.brand: Optional("")

device.hostname: awaiss-iphone

device.ipAddress: 192.168.10.9

device.macAddress: 02:00:00:00:00:00





lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c640>)

device.brand: Optional("")

device.hostname: awaiss-mac-mini

device.ipAddress: 192.168.10.8

device.macAddress: 02:00:00:00:00:00





lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c340>)

device.brand: Optional("")

device.hostname: roguepixel

device.ipAddress: 192.168.10.5

device.macAddress: 02:00:00:00:00:00





lanScanDidFindNewDevice: Optional(<MMDevice: 0x2809669c0>)

device.brand: Optional("")

device.hostname: myrouter.home

device.ipAddress: 192.168.10.1

device.macAddress: 02:00:00:00:00:00





lanScanDidFindNewDevice: Optional(<MMDevice: 0x28095c540>)

device.brand: Optional("")

device.hostname: galaxy-j7-2016

device.ipAddress: 192.168.10.7

device.macAddress: 02:00:00:00:00:00





lanScanDidFinishScanning with status: MMLanScannerStatus(rawValue: 0)

From iOS 11 onwards Apple devices do not provide you with the correct MAC address of any physical device. Further in iOS 14 Apple devices do not expose their real MAC but generate a random MAC address, this ensures improved privacy of users.

sachinELEVEN avatar Jul 07 '20 10:07 sachinELEVEN

@sachinELEVEN is this documented anywhere? as i have to provide this link to the client.

AwaisFayyaz avatar Jul 07 '20 10:07 AwaisFayyaz

@sachinELEVEN is this documented anywhere? as i have to provide this link to the client.

I don’t think this issue is mentioned anywhere on Apple’s documentation but there are plenty of articles mentioning this, eg https://networktoolbox.de/networktoolbox-ios-11/ 
 I think you can still get the MAC of the devices if you run your app on simulator, but it will not work on actual iOS device.

sachinELEVEN avatar Jul 07 '20 10:07 sachinELEVEN