VB.NET-INFORMATIONS.COM




     VB.NET Communications Tutorial

*  

  How to find IP Address of Host

*  

*  

*  

*  

*  

*  

*  

 

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 SourceCode

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

VB.Net Related Tpoics
*     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 with source code
*     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

*  

*  

*  

*  

*  

*  

*  

 

VB.Net Tutorial Summary

Search here for more Vb.Net Source Code :


   Categories

    HOME
    VB.NET
    CSHARP

 
 

   













  |  Home   |  SiteMap   |  About   |
net-informations.com (C) 2009 All Rights Reserved