Steps:
1. Create a new project with the startup form name "Form1"
2. Add a Textbox name "Textbox1"
3. Replace all of the code with the below code.
-----------------------------------------------------------------------------------------------------
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Text = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName).AddressList(0).ToString()
End Sub
End Class
-----------------------------------------------------------------------------------------------------
Hope this helped