Resolve Host Names/IP Addresses (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Classes
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
Simple class to convert Host Names to IP addresses and vice versa. Sample usage:
Dim objIP As New clsIP()
        With objIP
            Debug.WriteLine(.GetLocalHostIP)
            Debug.WriteLine(.GetLocalHostName)
            Debug.WriteLine(.HostNameToIP("www.yahoo.com"))
            Debug.WriteLine(.IPToHostName("206.215.148.3"))

        End With

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: