Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim Hostname As IPHostEntry = Dns.GetHostEntry(TextBox1.Text)
- Dim ip As IPAddress() = Hostname.AddressList
- TextBox2.Text = ip(0).ToString
- End Sub
- End Class
- -----------------------------------------------------------------------------------------------------------------------
- 2 labels
- 2 textboxes
- 1 button
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement