Expermicid Posted July 15, 2012 Share Posted July 15, 2012 (edited) TextBox1.text = La ruta\dirección del host TextBox2.text = La Ip obtenida del host [lenguaje=vb.net]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.GetHostByName(TextBox1.Text) Dim ip As IPAddress() = hostname.AddressList TextBox2.Text = ip(0).ToString() End Sub End Class[/lenguaje] Edited February 16, 2014 by Expermicid Link to comment Share on other sites More sharing options...
Recommended Posts