Home > Software engineering >  For vb. Net, how to get the current IP subnet, gateway, DNS and other information
For vb. Net, how to get the current IP subnet, gateway, DNS and other information

Time:09-30

If inscribe vb. Net, how to get the current IP subnet, gateway, DNS information such as the other multiple network card access to multiple IP addresses how to distinguish

CodePudding user response:

For reference only, although VB6:
 Shell "ipconfig/all CMD/c & gt; D: \ ipconfigall. TXT ", vbHide 
'and then read the file d: \ ipconfigall. TXT content

CodePudding user response:

Thank you that I tried all the returned content too much, want to buy out the contents of the classification is too tired, really want to know that the network is how to realize the function of debugging tools

CodePudding user response:

Try a WMI...

CodePudding user response:

VB.NET, use System.Net.Dns.GetHostEntry can get IP, other similar, both in the.net space, baidu once knew

CodePudding user response:

Multiple addresses, because the object returns a collection, you know!
  •  Tags:  
  • API