Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Getting IP addresses of computers connected to the network I'm connected to
ManiRon last edited by
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.
That would be a network scanner like
While 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
for the pinging part.
Note, i have never tested this lib.
It was just as an example.