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.

Reply via email to