How do I get a computer's name and IP address using VB.NET?

后端 未结 10 1015
春和景丽
春和景丽 2020-12-09 11:32

How can i get ip address of system by sending mac ip address as input using vb.net coding?

10条回答
  •  囚心锁ツ
    2020-12-09 12:24

    Dim ipAddress As IPAddress
    Dim ipHostInfo As IPHostEntry = Dns.Resolve(Dns.GetHostName())
    ipAddress = ipHostInfo.AddressList(0)
    

提交回复
热议问题