Jump to content

Primary IP Address Incorrect


Yemble

Recommended Posts

I have VmWare Workstation installed on my PC, although I rarely use it.  However, I have noticed that AIDA64 displays the Primary IP Address as one of the two VmWare virtual NIC addresses rather than the physical ethernet NIC address of the PC's wired connection.

There does not appear to be any way in AIDA64 to select the correct NIC for the Primary IP Address.

Link to comment
Share on other sites

On ‎6‎/‎29‎/‎2019 at 7:11 PM, Yemble said:

I have VmWare Workstation installed on my PC, although I rarely use it.  However, I have noticed that AIDA64 displays the Primary IP Address as one of the two VmWare virtual NIC addresses rather than the physical ethernet NIC address of the PC's wired connection.

There does not appear to be any way in AIDA64 to select the correct NIC for the Primary IP Address.

The primary IP address is provided by Winsock, and may or may not be the primary network adapter.  In rare cases Windows treats one of the least used network adapters as primary.  We haven't found a way to fix it from our end.

Link to comment
Share on other sites

16 hours ago, Fiery said:

The primary IP address is provided by Winsock, and may or may not be the primary network adapter.  In rare cases Windows treats one of the least used network adapters as primary.  We haven't found a way to fix it from our end.

Yea, only when I disable both virtual NICs does AIDA64 show the correct Primary IP.  Oh well, NP, as long as you are already aware of it...

Link to comment
Share on other sites

  • 1 year later...
  • 7 months later...
On 6/30/2019 at 2:06 PM, Fiery said:

The primary IP address is provided by Winsock, and may or may not be the primary network adapter.  In rare cases Windows treats one of the least used network adapters as primary.  We haven't found a way to fix it from our end.

FYI:  Hope this helps... checking to see if the Address Family is InterNetwork will return you the correct IP address.  See sample C# code below.

        public static string GetLocalIPAddress()
        {
            var host = Dns.GetHostEntry(Dns.GetHostName());
            foreach (var ip in host.AddressList)
            {
                if (ip.AddressFamily == AddressFamily.InterNetwork)
                {
                    return ip.ToString();
                }
            }
            throw new Exception("No network adapters with an IPv4 address in the system!");
        }

Link to comment
Share on other sites

  • 1 year later...
On 6/30/2019 at 3:06 PM, Fiery said:

The primary IP address is provided by Winsock, and may or may not be the primary network adapter.  In rare cases Windows treats one of the least used network adapters as primary.  We haven't found a way to fix it from our end.

Any news on the subject? Did @BenH post a solution that could be evaluated?
Link to comment
Share on other sites

On 6/30/2019 at 3:06 PM, Fiery said:

The primary IP address is provided by Winsock, and may or may not be the primary network adapter.  In rare cases Windows treats one of the least used network adapters as primary.  We haven't found a way to fix it from our end.

Any news on the subject? Did @BenH post a solution that could be evaluated?

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...