Hi Jia,
You can try this one
Me.TextBox1.Text = ""
'IP
Dim myIpadres As System.Net.IPAddress
Dim strhost As String
Dim myWorkstation As String = System.Net.Dns.GetHostName()
Dim IPAdres As String =
System.Net.Dns.Resolve(myWorkstation).AddressList(0).ToString
Me.TextBox1.Text = myWorkstation & "=" & IPAdres & vbCrLf
I hope it helps?
cor