Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65593

Not possible to get IP address from the QNetworkConfiguration

    XMLWordPrintable

Details

    Description

      With the attached code it is found that it is not possible to retrieve the IP address from the QNetworkConfiguration if the
      QNetworkConfiguration has the bearerType QNetworkConfiguration::BearerWLAN.
      In the following examples, the wireless connection is connected to WLAN Access Point Kevin QT:

      isValid=1, state=0x1, id=193882304, name=CBCI-23A3-5, type=0, bearerType=2
      isValid=1, state=0xe, id=3637833041, name=Kevin QT_5G, type=0, bearerType=2
      isValid=1, state=0x1, id=682463497, name=App Team, type=0, bearerType=2
      isValid=1, state=0x1, id=3006099712, name=XFINITY, type=0, bearerType=2
      isValid=1, state=0x1, id=605699457, name=NHKGuest, type=0, bearerType=2
      isValid=1, state=0x1, id=4270389382, name=Kevin QT, type=0, bearerType=2
      isValid=1, state=0x1, id=3176543632, name=NHKUSA, type=0, bearerType=2
      isValid=1, state=0x1, id=2316008933, name=Branding Team, type=0, bearerType=2
      isValid=1, state=0x1, id=899779904, name=SETUP, type=0, bearerType=2
      isValid=1, state=0x1, id=3721895902, name=BOE America_5GEXT, type=0, bearerType=2
      isValid=1, state=0x1, id=921984049, name=DIRECT-flC48x Series, type=0, bearerType=2
      isValid=1, state=0x6, id=4258503618, name=Kevin QT_5G-2, type=0, bearerType=2
      isValid=1, state=0x1, id=474937973, name=CBCI-23A3-2.4, type=0, bearerType=2
      isValid=1, state=0x1, id=1142465143, name=transcend-SV, type=0, bearerType=2
      isValid=1, state=0x1, id=3146045441, name=InFor500Guest, type=0, bearerType=2
      isValid=1, state=0x1, id=3688650650, name=HP-Print-72-Officejet Pro 8620, type=0, bearerType=2
      isValid=1, state=0x1, id=2036714466, name=xfinitywifi, type=0, bearerType=2
      isValid=1, state=0x1, id=2339951574, name=vc-guest, type=0, bearerType=2
      isValid=1, state=0x1, id=812342982, name=, type=0, bearerType=2
      isValid=1, state=0x2, id=358792940, name=isatap.

      Unknown macro: {A953B1D0-1A76-4F6A-829A-A0E941C70148}

      , type=0, bearerType=0
      isValid=1, state=0x2, id=3995982860, name=Local Area Connection, type=0, bearerType=1
      isValid=1, state=0x2, id=2279771454, name=Bluetooth Network Connection, type=0, bearerType=1
      isValid=1, state=0x2, id=1705858836, name=isatap.intra.qt.io, type=0, bearerType=0
      isValid=1, state=0x2, id=772924959, name=isatap.

      Unknown macro: {A9F78903-C90F-42E7-A136-6DA529CA9421}

      , type=0, bearerType=0
      isValid=1, state=0x2, id=4254024827, name=Teredo Tunneling Pseudo-Interface, type=0, bearerType=0
      isValid=1, state=0xe, id=3379096802, name=Local Area Connection 2, type=0, bearerType=1
      ip=fe80::8da9:d022:6255:41ac%ethernet_11
      ip=fe80::d74f:2f99:aa8a:4046%ethernet_11
      ip=10.10.220.221
      isValid=1, state=0x2, id=841453058, name=isatap.

      Unknown macro: {5FE75CAA-FA1D-4AAA-885B-1E386AE9C10B}

      , type=0, bearerType=0

      Attachments

        For Gerrit Dashboard: QTBUG-65593
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes