locked
How to get a websites IP RRS feed

  • Question

  • Hi I have a console application for getting a local IP address. I want to be able to get the application to get the IP addresses of websites aswell.

    Does anyone have any code on how to do this???

    Sunday, April 11, 2010 6:58 PM

Answers

  •         Dim ip() As IPAddress = System.Net.Dns.GetHostAddresses("www.microsoft.com")
    
            If ip.Count > 0 Then
                For Each ipadd As IPAddress In ip
                    MsgBox(ipadd.ToString)
                Next
            End If


    Thanks

    "Feel the Force !"
    • Proposed as answer by Spencer46571 Sunday, April 11, 2010 8:57 PM
    • Marked as answer by Jeff Shan Monday, April 19, 2010 2:06 AM
    Sunday, April 11, 2010 7:27 PM