- Apr 25, 2015
- 1,845
- 2
- 2,199
- 327
Firstly, how about we use some quick Windows tricks?

Pretty damn awesome, now can we convert this process into VB.NET to make this into a Visual Studio app, for end-users to sit back and click buttons instead of type commands? Yes.

Code:
ipconfig | findstr "v4"

Pretty damn awesome, now can we convert this process into VB.NET to make this into a Visual Studio app, for end-users to sit back and click buttons instead of type commands? Yes.

Code:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim strHostName As String
'Dim strIPAddress As String
Dim intIPCount
strHostName = System.Net.Dns.GetHostName()
intIPCount = System.Net.Dns.GetHostEntry(strHostName).AddressList.Count
For x = 1 To intIPCount
ListBox1.Items.Add(System.Net.Dns.GetHostEntry(strHostName).AddressList(x - 1).ToString)
Next
End Sub
End Class