-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Subnet Scanner not showing all the devices. #33
Comments
Hi @eakteam Can you try increasing the timeout of the scan to see if more devices are discovered? Maybe 5 - 10 seconds is enough
|
Hello , i just tried to set the timeout to 10000 ms , it's the same thing. Anyway i don't think that the problem stay in the ping responding timeout. In fact your implementation work really good for devices that accept ICMP ping request , but there are some other types of devices that they don't allow that and returns "timeout" .... to try to explain well this is my implementation of LAN Scanner in my App , i wish to replace with yours.
|
Ok, so to confirm you have some devices that don't respond to ping and they cause the native ping binary to output "no answer yet for icmp_seq="? I don't think it'd be a good idea to return a positive match in this case as this could also be the same output for a device that don't exist. |
Yes , the problem is that you are just checking the negative or positive results of ping binary and than calculate the results. In fact you should parse and read the results before and after that calculate if they should be added or not as Online Devices. So "no answer yet for icmp_seq=" may returned from some devices which they have disabled ping feature to reply back maybe because of protecting from DDOS , but anyway those devices are in the network and working. Sorry for my low English , hope to understand what im trying to say :) :D :) |
Ok, I understand. Can you send the full output of ping to one of these devices? |
THIS ARE THE COMMON TERMINAL OUTPUT OF PING BINARY :
When the device is there but i doesn't allow ping it send to the console Pattern M6 when it is not there maybe it returns Unreachable or Nothing just end the execution |
Can I see the output of ping directly? like this
|
NORMAL DEVICE PING :
DEVICE DONT EXIST ON NETWORK :
DEVICE EXIST BUT IT DON'T ACCEPT PING ( This is not found in ur lib)
Here it returns nothing as message from ping binary... But they may return "no answer yet from icmp_seq" if you increase the ping count to 2 : "-c 2" . Those type of devices should be marked as Online in the LAN. |
@eakteam @stealthcopter are you able do some workaround for this? |
I have solved it in my app by self writing all the ping class...
|
@eakteam can you fork the library and show the fix you made? I too struggling with this thing. Not all devices found on the network :( |
Hi @osfunapps , this would be great to help but i have solved it with my own implementation. I am not using this lib implementation. But i can say that the issue is happening because of native ping results. So there is a case when devices doesn't reply to ping request but in fact they are active on LAN. So just try to "play" with the ping results when executed by Android process. You may understand the issue. Anyway, i will try to post the solution here later because i can't for the moment. |
@BrentPollyn , i have implemented in my app, custom subnet scanner. This library needs much changes to full support it and being compatible with Android 10+ since they disabled access to sys/arp too |
@BrentPollyn , i am sorry but my source code cannot be shared. The app which contains it is : https://play.google.com/store/apps/details?id=com.eakteam.networkmanager.pro Try to implement it yourself it is not so much to write.
Sorry for my nit good English, hope to be understandable |
Hello thanks for this great library first off. I have noticed that Subnet/LAN Scanner is not showing all the devices. I think this is happening because when it pings the IPs with NATIVE ping some type of devices may returns :
no answer yet for icmp_seq
from native terminal ,but this types show be added as online devices because they just don't accepts ping , but they are there ....Sorry for my low English hope to be fixed soon.
i think you should check the output of Ping Process and if they returns timeout its ok they are right there 👍
The text was updated successfully, but these errors were encountered: