views:

95

answers:

1

Is there a setting in CF that show this info? Something like Machine.IPAddress?

Thanks!

I am using Asp.net CF .net 2.0 and c#

+1  A: 

got it:

 using System.Net;

    string strHostName = Dns.GetHostName();
    IPHostEntry hostInfo = Dns.GetHostByName(strHostName);
    string strIPAddress = hostInfo.AddressList[0].ToString();
gnomixa

related questions