我的电脑我的地址 [英] my pc i p address

查看:96
本文介绍了我的电脑我的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑的ip地址是什么

解决方案

获取电脑的地址


< pre class ="prettyprint lang-vb"> Dim strHostName As String = Net.Dns.GetHostName()

Dim IPHostEnt As Net.IPHostEntry = Net.Dns.GetHostEntry(strHostName)

For Each addr As Net.IPAddress In IPHostEnt.AddressList
Debug.WriteLine(" {0} {1}",addr.AddressFamily,addr)
Next


what is the ip adress of my pc

解决方案

To get the address(es) of the PC

        Dim strHostName As String = Net.Dns.GetHostName()

        Dim IPHostEnt As Net.IPHostEntry = Net.Dns.GetHostEntry(strHostName)

        For Each addr As Net.IPAddress In IPHostEnt.AddressList
            Debug.WriteLine("{0}  {1}", addr.AddressFamily, addr)
        Next


这篇关于我的电脑我的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆