C#实现获取本机IP以及网关地址
下面是C#实现获取本机IP以及网关地址的完整源码:
using System;
using System.Net;
using System.Net.NetworkInformation;
class Program
{
static
using System;
using System.Net;
using System.Net.NetworkInformation;
class Program
{
static