<--Here's My Code-->
using System.Windows.Forms;
using System;
using System.Net;
class MYDns
{
public static void Main()
{
string hostName = Dns.GetHostName();
IPAddress.DefaultIPGateway;
foreach (IPAddress address in myself.AddressList)
{
MessageBox.Show("IP Address: " + address.ToString(), "Your IP Address");
MessageBox.Show("Local HostName: " + hostName, "Your HostName");
}
}
}
<--End Of Code-->
Answers
Know the answer? Post it. Somebody with the same question will find it here.