hi frnd.....
where i write this code to display an ip address
in a textbox...
when i write on this code on forms load event.....
'To get local IP address
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Me.TextBox1.Text = h.AddressList.GetValue(0).ToString
the code is working, but one warning is generated i.e.
Warning 'Public Shared Function GetHostByName(hostName As String) As System.Net.IPHostEntry' is obsolete: 'GetHostByName is obsoleted for this type, please use GetHostEntry instead.
pls help me...
and im mac address 4 errors are generated.....
i want to display ip address and mac address in textboxes when my project is run.
kindly help me.......