Showing posts with label internal ip. Show all posts
Showing posts with label internal ip. Show all posts

Get Internal IP of machine in C#

Saturday, June 5, 2010

//other related namespaces
using System.Net;

//this is example class, you can code it in your own way
public class getIP : System.Web.UI.Page
{
     //other related coding
     IPHostEntry IPHost = Dns.GetHostEntry(Dns.GetHostName());
     String ip = IPHost.AddressList[0].ToString();
}

**************************LINKS******************************

I have created a new better blog:

My Youtube channel:

**************************LINKS******************************