VB.Net-Informations.com
   Home      .Net Framework      VB.NET      C#                                                                      About


  How to find IP Address of Host

Syste.net namespace provide the infomation about IP Address .

vb.net_ip_address.JPG

If you pass localhost in GetHostByName return the IP Address of local machine .

         VB.NET Source Code Download           Print Source Code
         How to find IP Address of Host - Download
        
C# Tutorial

Imports System.Net
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
        Dim hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text)
        Dim ip As IPAddress() = hostname.AddressList
        TextBox2.Text = ip(0).ToString()
    End Sub
End Class



VB.NET Communications Related Contents
*     How to send email from VB.NET
*     VB.NET Send email using CDOSYS
*     How to read a URL Content
*     VB.NET Socket Programming
*     VB.NET Server Socket Program
*     VB.NET Client Socket Program
*     VB.NET MultiThreaded Socket Programming
*     VB.NET MultiThreaded Server Socket Programming
*     VB.NET MultiThreaded Client Socket Programming
*     VB.NET Chat Server Program
*     VB.NET Chat Server
*     VB.NET Chat Client


   Home      VB.NET      C#
VB.Net Related Topics
*     Microsoft .Net Framework Tutorials
*     VB.NET Language Basics Tutorials
*     VB.NET Program Flow Control Tutorials
*     VB.NET Collections Tutorials
*     VB.NET String Tutorials
*     VB.NET Files Tutorials
*     VB.NET Excel 2007 Tutorials
*     VB.NET Crystal Reports Tutorials
*     VB.NET Communications Tutorial
*     VB.NET ADO.NET Tutorial
*     ADO.NET Data Providers help and Tutorial
*     VB.NET ADO.NET Dataset Tutorial
*     ADO.NET DataAdapter and Dataset
*     VB.NET ADO.NET DataView Tutorial
*     VB.NET Remoting Tutorial
*     VB.NET XML Tutorial
*     VB.NET DataGridView Tutorial
   Home      VB.NET      C#
More Source Code :   
Mail to :  feedback@net-informations.com
  |  Home   |  VB.NET   |  C#   |  SiteMap   |  Terms of Use   |  About   |
net-informations.com (C) 2010
All Rights Reserved. All other trademarks are property of their respective owners.