using System;
using System.Net;
class Test {
public static void Main() {
IPAddress[] a = Dns.GetHostByName(Dns.GetHostName()).AddressList;
for (int i=0; i<a.Length; i++)
Console.WriteLine ("IpAddr[{0}]={1}",i,a
); }
}
hope this may help
--
Happy Coding
Muhanad YOUNIS
MCSD.NET / MCT
http://myounis.blogspirit.com
Be the first to know visit http://www.jordev.net
RonB said:
This should be easy to do, however I can't seem to figure it out. How can
I
find the IP of my machine using .NET
thanks,
Ron