SHARE
TWEET

Untitled

a guest Jun 20th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IPAddress ip = null;
  2.             IPAddress mask = null;
  3.             //++**********************************
  4.             // Get IP
  5.             //--**********************************
  6.             strHostName = Dns.GetHostName();
  7.             IPHostEntry iphe = Dns.GetHostEntry(strHostName);
  8.             foreach (IPAddress ipheal in iphe.AddressList)
  9.             {
  10.                 if (ipheal.AddressFamily ==AddressFamily.InterNetwork)
  11.                 {
  12.                     ip = ipheal;
  13.                     break;
  14.                 }
  15.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top