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

QHostInfo::fromName() method is returning invalid IPv6 address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 4.6.3, 4.7.0
    • Fix Version/s: 4.7.0
    • Component/s: Network: DNS
    • Labels:
      None
    • Environment:
      Symbian Wk20 (Qt 4.6.3) baseline (PC environment is "Windows 7")

      Description

      I am testing QHostInfo::fromName() method on Symbian Wk20 (Qt 4.6.3) baseline (background environment is Windows 7). I am trying to return the IP addresses of a host name which is having one IPv6 address and two IPv4 addresses. According to documentation, this method should return list of all IP addresses but it is returning only IPv6 address. This is consistent, never returning any IPv4 address. Even the returned IPv6 address is not valid. It is returning "0:0:0:0:0:0:0:0".

      I tested this use case scenario on Qt-Windows (Qt 4.6.3), and found that it is returning all the three IP addresses properly. Even it is returning the correct IPv6 address.

      So, this seems to be a bug in Qt for Symbian.

      I will be thankful to you If you can provide quick fix for this.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              earthdomain Earth Domain (Inactive)
              Reporter:
              baluvaranasi BalaSubrahmanyam Varanasi
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes