.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Code Snippets >> Network >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

IP checking process

Posted By:papsantony       Posted Date: August 12, 2010    Points: 10    Category: Network    URL: http://www.dotnetspark.com  

IP checking process in in .NET Framework

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        IPAddress.Text = GetIP()

    End Sub

    Function GetIP() As String

        Using GetAdd As New Net.WebClient

            Return GetAdd.DownloadString("http://whatismyip.org/")

        End Using

    End Function

End Class


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend