[C#] IP Address 보기


[C#] IP Address 보기

-- Source Code -- // IP Address private static string Client_IP { get { IPHostEntry host = Dns.GetHostEntry(Dns.GetHostName()); string ClientIP = string.Empty; for (int i = 0; i < host.AddressList.Length; i++) { if (host.AddressList[i].AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) ClientIP = host.AddressList[i].ToString(); } return ClientIP; } } 참고 : http://notgivuphil.tistory.com/429 c#] IP주소 가져오기 [쥔장]====================== 이런 내용은 책을 봐도 나오는 내용이고 msdn을 봐도 나오는 내용이지만 귀찮아서 검색하여 스크...



원문링크 : [C#] IP Address 보기