Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Getting IP addresses of computers connected to the network I'm connected to
Forum Updated to NodeBB v4.3 + New Features

Getting IP addresses of computers connected to the network I'm connected to

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ManiRonM Offline
    ManiRonM Offline
    ManiRon
    wrote on last edited by
    #1

    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 ?

    aha_1980A 1 Reply Last reply
    0
    • ManiRonM ManiRon

      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 ?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #3

        Hi
        That would be a network scanner like
        http://www.eusing.com/ipscan/free_ip_scanner.htm

        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
        https://noping.cc/
        for the pinging part.

        Note, i have never tested this lib.
        It was just as an example.

        aha_1980A 1 Reply Last reply
        3
        • mrjjM mrjj

          Hi
          That would be a network scanner like
          http://www.eusing.com/ipscan/free_ip_scanner.htm

          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
          https://noping.cc/
          for the pinging part.

          Note, i have never tested this lib.
          It was just as an example.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          @ManiRon: And to add to @mrjj: Computers can block ping requests, so this is by no way a reliable procedure to find all computers in the local network.

          Qt has to stay free or it will die.

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved