Amoraboti - Program
Rashed - Uz - Zaman (Rasel)
  Home About Me Brainstorming Facebook Fan Page Contact    
  Author
I'm Rz Rasel
From Bangladesh

  Archives
April 2010
May 2010
January 2011
February 2011
January 2012
February 2012
March 2012

  Current

  Previous Posts
Find Difference Between Two Dates In C Sharp
Calculating Date Difference in C Sharp
Without SSL connection, Normal SMTP Java
Fetch Mail through a proxy server (Gmail) Java
Send Mail through a proxy server (Gmail) Java
Sending Email From Your Application Using Java Mail
Link

  My Link
Islam And We
My Diary (Bangla)
My Diary (English)
My Lyrics (Bangla)
My Lyrics (English)
My Poem (Bangla)
My Poem (English)
My Story (Bangla)
My Story (English)
General Knowledge
Fun And Jokes
Lyrics (Bangla)
Lyrics (English)
Lyrics (Hindi)
Quotations
 
 
  Get Local Computer IP Address  
  Monday, April 5, 2010  
 
Get local computer IP address:

Get local computer IP address (C Sharp):

///
/// Gets IP addresses of the local computer
///

public string GetLocalIP()
{
string _IP = null;

// Resolves a host name or IP address to an IPHostEntry instance.
// IPHostEntry - Provides a container class for Internet host address information.
System.Net.IPHostEntry _IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName());

// IPAddress class contains the address of a computer on an IP network.
foreach (System.Net.IPAddress _IPAddress in _IPHostEntry.AddressList)
{
// InterNetwork indicates that an IP version 4 address is expected
// when a Socket connects to an endpoint
if (_IPAddress.AddressFamily.ToString() == "InterNetwork")
{
_IP = _IPAddress.ToString();
}
}
return _IP;
}

Rz Rasel

Amoraboti

If Error – Please Acknowledge Me. (Rz Rasel)

Labels:

 
  posted by Rz Rasel At 12:08 AM,

0 Comments:

Post a Comment

<< Home

 
     
 
  Problem In Font
Download then zip file unzip and install in your system. Or normal font file just install in your system font folder. Rz Rasel
Bangla Font
Bangla Font

  Find Me In Facebook
 
 

   aaaa
 

   aaaa
 
 
Copyright © 2010 - Amoraboti - Program. ® All right reaserved. Design and developed by:- Rz Rasl