How to make a IP Grabber 11-21-2012, 07:43 PM
#1
Create a New Project.
Add one button and two text box's.
Double click button1 and add this code.
That is it, debug and test it, i am using visual studio 2010.
Thanks to Cyber-Savage
Spoiler:
Add one button and two text box's.
Spoiler:
Double click button1 and add this code.
PHP Code:
Dim hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text) 'this makes the program know that textbox 1 is the hostname
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
That is it, debug and test it, i am using visual studio 2010.
Thanks to Cyber-Savage