Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicates #50

Open
matt-matt1 opened this issue Feb 13, 2020 · 4 comments
Open

Duplicates #50

matt-matt1 opened this issue Feb 13, 2020 · 4 comments

Comments

@matt-matt1
Copy link

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)

@AwaisFayyaz
Copy link

AwaisFayyaz commented Jul 7, 2020

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)

@sachinELEVEN
Copy link

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.

@AwaisFayyaz
Copy link

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

@sachinELEVEN
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants