I am Going to Show you How to Make a Simple Get Host IP Tool using VB 6.0 ..
The Tool's going to Look Like so:

You'll Need 2 Buttons 2 TextBoxes and 2 Labels
..
Add a Label and Rename it to "Hostname:" than add another Label and rename it to "IP Address is:" ..
than add to TexBoxes .. after the Labels ..
than you have to add 2 Buttons
Rename the First Button to "Get IP"
and the Second One to "Quit"..
and then add a Winsock ..
..
the code for the "Get IP" button is:
Winsock1.Connect Text1.Text, "80"
and for the other button "Quit" is:
Unload Me
.. and the Winsock's code:
Text2.Text = Winsock1.RemoteHostIP Winsock1.Close
.. and now make a test ..

..
Thanks, Egz0N :)


Sign In
Create Account




Back to top










