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


Top 5 Contributors of the Month
david stephan

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:

Responses

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