mavris / mmlanscan Goto Github PK
View Code? Open in Web Editor NEWAn iOS LAN Network Scanner library
License: MIT License
An iOS LAN Network Scanner library
License: MIT License
Hi,
I am trying to incorporate MMLANSCAN library into my existing project, but it shows the following error, when I try to add the MMLANSCAN folder
Error
Undefined symbols for architecture arm64:
"_CNCopySupportedInterfaces", referenced from:
+[LANProperties fetchSSIDInfo] in LANProperties.o
"_CNCopyCurrentNetworkInfo", referenced from:
+[LANProperties fetchSSIDInfo] in LANProperties.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could you please help me to get out of this :-(
When I run it with simulator, it return Mac address but it return "02:00:00:00:00:00" with real device iOS 15.
lanScanDidFindNewDevice: 192.168.31.1 - 02:00:00:00:00:00"
"lanScanDidFindNewDevice: 192.168.31.48 - 02:00:00:00:00:00"
"lanScanDidFindNewDevice: 192.168.31.64 - 02:00:00:00:00:00"
"lanScanDidFindNewDevice: 192.168.31.55 - 02:00:00:00:00:00"
hi, Is there any way i can find MAC address on iOS11 ? i have to solve this problem .
In current version, when MMLANScannerDelegate find new device, property subnetMask in Device object always == nil.
I have found many solutions on the Internet, but none of them can solve this problem. Moreover, this problem does not exist on the simulator. I want to get the mac address of the device, which can be obtained on the simulator, but it shows 02:00:00:00:00:00 on the real machine. Is Apple now forbidden to obtain the mac address of the device? How can I solve it? Thank you!
When I try to compile with Xcode GM, I get a SimplePing.h error.
Is there anyone testing with Xcode GM?
I find that pinging a whole subnet will not report about 20% of the devices that should be there. Bigger numbers if the max concurrency count is higher.
When I do some logging inside [SimplePing readData], I see that all kinds of instances of Simple ping are receiving data from other pings. Somehow the SocketReadCallback gets called multiple times when data comes in. This might be related to this problem.
I'd love to solve this but might need a little extra help to fix it. Any ideas?
When I log who is receiving the data and where it came from, I get this:
Sometimes host-names are not coming in list
Anyone can help with this issue?
It does not happen in Debug mode, only in Release.
Crash when the internet cuts out mid-scan.
Scan list smb device when connect VPN? Is it possible?
When scanning on a non-main thread, eg: DispatchQueue.global().async {}, sometimes app throws an exception
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)
Hi!
I try to use your proyect with a raspberry, my raspberry don´t have internet conexion. Then connect my iphone to wifi network raspberry , run your project and don´t have any response...
If connect my raspberry to internet or connect my iphone to my router with internet, your project work very well.
With ring app , I can see my iphone mac but my raspberry don´t have internet ...
I change AF_INET to AF_LOCAL or AF_UNIX , but don´t work...
I add and use this file in the project
[http://opensource.apple.com//source/bootp/bootp-133.8/bootplib/arp.c]
but only have mac and ip of my raspberry..
any idea how could get the mac if my iphone is connected to a wireless network without internet?
thanks for your time
regards!
hello. Can you provice me the way to detect if ip address is belong to camera and then get the port when have ip address
i have created personal hotspot and other devices are connected to it i want to access IP address of those connected devices.
When running on the simulator, 'net/route.h' file not found...
What should I do?
I've added the line: pod 'MMLanScan' but when i try to install i've this error:
[!] Unable to find a specification for MMLanScan
How can i fix ?
Thanks
I have a mac catalyst project.
I'm getting below error when I scan.
The operation couldn’t be completed. Operation not permitted
Hi Mavris,
Here in the function, I can see LANProperties, MMLanScan and others
but I couldn't figure it out the correct function to call for scanning all the associated IP in a same network.
Please bare with my noviceness and reply me at your earliest
Support for Mac OSX?
Using iOS 11.0 beta 1, the current code returns a spoofed mac address. 02:00:00:00:00:00
Hi MMLanScan fails to work in Class A network.
my IP/Subnet = 10.231.154.136/255.254.0.0
ipcalc shows 131070 possible hosts in given subnet
Address: 10.231.154.136 00001010.1110011 1.10011010.10001000
Netmask: 255.254.0.0 = 15 11111111.1111111 0.00000000.00000000
Wildcard: 0.1.255.255 00000000.0000000 1.11111111.11111111
=>
Network: 10.230.0.0/15 00001010.1110011 0.00000000.00000000
HostMin: 10.230.0.1 00001010.1110011 0.00000000.00000001
HostMax: 10.231.255.254 00001010.1110011 1.11111111.11111110
Broadcast: 10.231.255.255 00001010.1110011 1.11111111.11111111
Hosts/Net: 131070 Class A, Private Internet
where is NetworkCalculator.getAllHostsForIP calculates this amount to be ~2 million
As a result array of IP's allocates ~100Mb of memory and MMLANScanner.start hangs
I am running this on my iPhone with OS version 10.2 and getting the follow mac address. And for all ip addresses it is same.
Found hostname: iphone
2016-12-17 15:00:33.188 Kisafa[387:102597] found 192.168.1.9
2016-12-17 15:00:33.196 Kisafa[387:102597] mac 02:00:00:00:00:00
2016-12-17 15:00:33.196 Kisafa[387:102597] device original mac = 02:00:00:00:00:00
2016-12-17 15:00:33.197 Kisafa[387:102597] device MAC = 000000
iOS 12获取不到了
Hello, is the efficiency of using ping too slow, can use the form of broadcast to use ARP protocol to achieve it?
I tried get hostname in this code
func lanScanDidFindNewDevice(device: Device!) {
// print("This is Device : "+"(device)")
//Adding the found device in the array
if(device.brand.containsString("Apple")){
print("DeviceInfo : "+"(device.macAddressLabel())"+"(device.hostname)\n")
}
self.connectedDevices?.append(device)
}
but hostName is "nil"
I using swift 2.2 and xcode 7 and also I am beginner developer so I need your help
please tell me how can I get HostName
hello @mavris great job for CocoaPods support. I tested the pod, it doesn't work to get the brand name, I think it's because the data.plist file is not included. I creat a Pull Request for this, may fix this little bug.
I can see my device's mac address from another device but when I try to get my device's mac address from the same device what I get is only 02:00:00:00:00:00. How can I fix that?
Is it possible to get mac id of non-connected device also?
Here , non-connected device is located in wifi range.
I want to get the data of all devices(connected and non-connected) that located in wifi that connected my phone(installed this app).
Thanks!
Hi,
App become irresponsible and then crashes when I try to use scanner in IPv6 network
self.device.ipAddress
looks like 169.254.xxx.xxx
[LANProperties getAllHostsForIP:self.device.ipAddress andSubnet:self.device.subnetMask];
return an array of 65534 IPs
from 169.254.1.1 to 169.254.255.255
It will be great if you can fix this =)
If you don't know how to test in ipv6 network look here
Regards
Scanning all devices in my network takes 3:30 minutes . It takes 30 seconds to get the first device.
How can I solve this problem ??
HI there,
I'm hoping that this library has the capability to list the devices which are connected to an iPhones hotspot. I have tried with no success so far. Is this something which should be possible with the library.
Thanks
cell.ipLabel.text = device.ipAddress
cell.macAddressLabel.text = device.macAddress
cell.hostnameLabel.text = device.hostname
cell.brandLabel.text = device.brand
In this code there is a hostname section but application doesn't show any value about hostname.
Hi,
When I run on iOS11, can not get Mac address, I found that you mentioned "iOS 11 is breaking the MAC address retrieval from ARP table so MAC Addresses and Brands won't work on MMLanScan with iOS 11. We still using MacFinder since it's helpful in order to discover online devices that won't reply to pings", where can there be other solutions or ideas? Please tell us.
Thank you very much!
Is there a way to seek in numerical ip address order?
ATM I store each find in an array and when lanScanDidFinishScanning the array is sorted then displayed. The drawback is the whole scan may take a while...
So I would like results shown as soon as found - but in order.
Is seems that iOS 10.2 has damaged something and MAC-resolving isn't working. Every IP has MAC like "02:00:00:00:00:00"
Do you have any idea how to fix it?
I need to detect printer connected in network . Can i do it with your library ?
It will be perfect with me with this fuction.I really need it
hi
I am using this library in my project which runs on iPad with ios 11.2.
I would like to use only the Ip address and the number of device connected with the same network.
I dont want the details of MAC or brand name.
I tried changing the function [getMACdetails] but with no success.
Could you please help me with the library without mac or brand name?
Hello!
My app freezes when i try to scan wifi network that is not connected to internet.
Can you give me any clue why this happens? Whenever the wifi has access to the internet everything works as expected.
It shows "no wifi available "in simulatorWhat to do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.