Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked Obtener Ip de un Host


Recommended Posts

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 by Expermicid
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.