Click here to Skip to main content
12,692,105 members (32,791 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3K views
2 bookmarked
Posted

Whats My IP Address ?

, 21 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Private Sub GetIPAddress()Dim strHostName As StringDim strIPAddress As StringstrHostName = System.Net.Dns.GetHostName()strIPAddress = System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()MessageBox.Show("Host Name: " & strHostName & "; IP Address: " &...
Private Sub GetIPAddress()

Dim strHostName As String

Dim strIPAddress As String



strHostName = System.Net.Dns.GetHostName()

strIPAddress = System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()



MessageBox.Show("Host Name: " & strHostName & "; IP Address: " & strIPAddress)

End Sub

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Anshul R
Student
India India
No Biography provided

You may also be interested in...

Pro

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 22 Sep 2011
Article Copyright 2011 by Anshul R
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid