By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

How To Get The IP

P: n/a
hi all.
looking for a simple code example of getting my computer
IP.
thanks.
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
shachar,

In my opinion there are more methods, however one is.
\\\
Dim IPAdres As String = System.Net.Dns.Resolve _
(SystemInformation.ComputerName).AddressList(0).To String
///
I hope this helps?

Cor

"shachar" <an*******@discussions.microsoft.com>
hi all.
looking for a simple code example of getting my computer
IP.
thanks.

Nov 21 '05 #2

P: n/a
"shachar" <an*******@discussions.microsoft.com> schrieb:
looking for a simple code example of getting my computer
IP.


<URL:http://www.activevb.de/rubriken/vbdotnettipps/tipp0016.html>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

P: n/a
Dim strHostName = System.Net.Dns.GetHostName.ToString
txtLocHost.Text = strHostName
txtIPAdrr.Text =
System.Net.Dns.GetHostByName(strHostName).AddressL ist(0).ToString()

shachar wrote:
hi all.
looking for a simple code example of getting my computer
IP.
thanks.


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.