Ping ping = new Ping();
PingReply reply = ping.Send("119.75.218.45");//百度IP
if(reply.Status == IPStatus.Success)
{
MessageBox.Show("已联网");
}
else
{
MessageBox.Show("未联网");
}
Copyright © 2009-2022 www.wenjiangwz.cn 成都网站建设公司 版权所有 蜀ICP备19037934号