I want to know the IP of my computer,
How should I do?
Can I get some examples?
Thanks.
Printable View
I want to know the IP of my computer,
How should I do?
Can I get some examples?
Thanks.
VB Code:
Imports Imports System.Net Imports System Dim strHostName As String = Dns.GetHostName Dim ipEntry As IPHostEntry = Dns.GetHostByName(strHostName) Dim IpAddr() As IPAddress = ipEntry.AddressList Dim myIP As String myIP = IpAddr(0).ToString
this was posted by Cander before
Thank you, MrPoliet.
I am successful.
Thank you very much!