Unsolved Getting IP addresses of computers connected to the network I'm connected to
-
I want to develope an application which will be able to find the IP address of all the computers connected in the same network . I tried QNetworkInterface but it returns my Systems IP address , Is there a way in QT to find the IP of all the computer that are connected to the same network ?
-
@maniron Isn't that the same question as https://forum.qt.io/topic/104773/can-we-do-ip-scanning-using-qt ?
And no, there is no build in function.
Regards
-
Hi
That would be a network scanner like
http://www.eusing.com/ipscan/free_ip_scanner.htmWhile Qt does offer the technologies to make such tool, there is not a single class that will do this for you.
A scanner often uses ping while looping over an IP range to see if a device exists on a given ip.
Implementing a ping feature is not trivial so often people run the platforms ping tool via QProcess.
You could look into using a library
https://noping.cc/
for the pinging part.Note, i have never tested this lib.
It was just as an example. -