RE: How to make a IP Grabber 11-21-2012, 07:48 PM
#2
Nice! The only way to make this better is if you can explain the code,
Dim hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text) this makes the program know that textbox 1 is the hostname ( website )
Dim ip As IPAddress() = hostname.AddressList This Grabs the ip address from the host
TextBox2.Text = ip(0).ToString() This displays the ip address in Textbox 2
Anyway AWESOME thread
Dim hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text) this makes the program know that textbox 1 is the hostname ( website )
Dim ip As IPAddress() = hostname.AddressList This Grabs the ip address from the host
TextBox2.Text = ip(0).ToString() This displays the ip address in Textbox 2
Anyway AWESOME thread
![Biggrin Biggrin](https://sinister.ly/images/smilies/set/biggrin.png)
Wavy baby