you can use it with data base...and code available for getting ip address are:
IPHostEntry ipEntry = Dns.GetHostByName(st);
IPAddress[] addr = ipEntry.AddressList;
for (int i = 0; i < addr.Length; i++)
{
ip = addr[i].ToString();
listBox2.Items.Add(addr[i].ToString());
}
used to get connected system ip address and bind them into list box