c# list local ip addresses
using System;
using System.Net;
namespace Reverse
{
class Program
{
static void Main(string[] args)
{
string ComputerName = Dns.GetHostName();
IPAddress[] localIPs = Dns.GetHostAddresses(ComputerName);
foreach(IPAddress ip in localIPs)
{
Console.WriteLine(ip.ToString());
}
}
}
}