IPHostEntry IPinfo = Dns.GetHostEntry(textBox1.Text);
foreach (IPAddress IP in IPinfo.AddressList)
{
textBox2.Text += " " + IP.ToString();
}
foreach (IPAddress IP in IPinfo.AddressList)
{
textBox2.Text += " " + IP.ToString();
}
解决方案 »
- 动态创建wpf窗体
- C#如何设计的网站模板
- 用C#递归求第19位数
- 求一个csdn左边的树型菜单,在asp.net的树型菜单源码?
- 写了个接收页面的程序,主要是通过http传输值给一个send.asp这个页面,但是send.asp接收的中文数据出现乱码,请各位高手进来指点一下
- ==========简单问题(ASP.NET Web 服务新建)====
- 有没有sql的语句分析分解的类库?
- 哪位有使用Data Access Application Block的例子,使用这个dll文件也可以使用动态来调用吗?
- 打开WEB项目时提示出错?
- 请教winform下的datagrid问题,请高手帮助!
- 如何用VS2005对以下SQL数据库进行新增保存修改的页面
- C#有类似VC++那样回调函数机制吗?
string result = string.Empty;
ipAddress.ToList().ForEach(x => result += string.Concat("\r\n", x.ToString()));
Console.WriteLine(result);
http://blog.csdn.net/chenguang79/article/details/3364350
http://blog.csdn.net/chenguang79/article/details/3364350
我试试看看 谢谢你了