Results 1 to 3 of 3

Thread: How to Check system is using IPV4 Or IPV6

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2010
    Posts
    299

    How to Check system is using IPV4 Or IPV6

    Hello everyone,

    How can I check the current network adaptor on computer is using IPV4 or IPV6 using Vb.net 2013.
    I am facing an issue that Amazon RDS doesn't support IPV6 and I am using Amzon RDS.
    Therefore if client is using IPV6 I want to show a message box that change your network to IPV4

    Here is Amazon article
    https://aws.amazon.com/premiumsuppor...nter/rds-ipv6/

    Thanks in advance.
    Ladak

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,140

    Re: How to Check system is using IPV4 Or IPV6

    You could try getting the IPV6 address, and, if one is found and no IPV4 address is found, then show the message.

    Possibly useful links:

    https://www.codeproject.com/Tips/106...-from-a-Server

    https://www.sourcecodester.com/tutor...pv6-vbnet.html

  3. #3
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Pointless Forest 38.517,-92.023
    Posts
    9,494

    Re: How to Check system is using IPV4 Or IPV6

    See if this points you in a directions.

    Code:
            Dim h As String = System.Net.Dns.GetHostName
            Dim he As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(h)
            If he.AddressList(0).AddressFamily = Net.Sockets.AddressFamily.InterNetwork Then
            ElseIf he.AddressList(0).AddressFamily = Net.Sockets.AddressFamily.InterNetworkV6 Then
            Else
            End If
            Stop
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width