string GetIp;
IPHostEntry ip = Dns.GetHostEntry(Dns.GetHostName());
IPAddress[] IPaddr = ip.AddressList;
for (int d = 0; d < IPaddr.Length; d++)
{
GetIp += IPaddr[d].ToString();
}
This GetIp will carry the ip of the System on which the prgram will run.
Insert this code in FormLoad Event.
- [DotNetDevelopment] Get the ip addres from login Carlos Arias
- [DotNetDevelopment] Re: Get the ip addres from ... Carlos Arias
- [DotNetDevelopment] Re: Get the ip addres f... KeidrickP
- [DotNetDevelopment] Re: Get the ip addr... [email protected]
- [DotNetDevelopment] Re: Get the ip ... VIKAS GARG
- [DotNetDevelopment] Re: Get the ip ... Carlos Arias
