Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-469

Windows.pm may fail to return public IP address if the same interface also has a non-public IP address bound

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 2.3
    • vcld (backend)
    • None

    Description

      On rare occasion, a Windows computer will have an auto-generated IP address bound as well as a valid public address bound to the same interface:

      $ ipconfig

      Windows IP Configuration

      Ethernet adapter Local Area Connection:

      Connection-specific DNS Suffix . : dcs.mcnc.org
      IP Address. . . . . . . . . . . . : 152.46.16.224
      Subnet Mask . . . . . . . . . . . : 255.255.248.0
      Default Gateway . . . . . . . . . : 152.46.23.254

      Ethernet adapter Local Area Connection:

      Connection-specific DNS Suffix . : dcs.mcnc.org
      IP Address. . . . . . . . . . . . : 0.0.0.0
      Subnet Mask . . . . . . . . . . . : 0.0.0.0
      Default Gateway . . . . . . . . . :

      Under this condition, the 0.0.0.0 address may be returned by get_public_ip_address, causing a reservation to fail. Update the code to return the valid public IP address.

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: