게이트웨이1 [C#] Gateway 구하기 [C#] Gateway 구하기 How to get gateway in C# using System.Net.NetworkInformation; privite void showGateway() { NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces(); string gateway = string.Empty; foreach (NetworkInterface adapter in adapters) { IPInterfaceProperties adapterProperties = adapter.GetIPProperties(); GatewayIPAddressInformationCollection addresses = adapterProperties.. 2019. 8. 28. 이전 1 다음