现在的位置: 首页 > 综合 > 正文

解析远程IP地址和FTP访问

2018年05月14日 ⁄ 综合 ⁄ 共 265字 ⁄ 字号 评论关闭

 using System.Net;

ArrayList arr = new ArrayList();
IPHostEntry host;
host = Dns.GetHostEntry("www.baidu.com");
foreach(IPAddress ip in host.AddressList)
{
  arr.Add(ip.ToString());
}

/*------------------ ftp ---------------------*/

Uri u = new Uri(ftp://ftp.microsoft.com);

webBrowser1.Url = u;

抱歉!评论已关闭.