How to make a website ip finder. 03-20-2013, 03:36 PM
#1
Hey guys.
This is my first tutorial for this site, i hope you like it!
This is a basic tutorial about: How to make a website ip finder?
Things you need:
Visual basic 2010/2012
Layout:
You will need to add:
2 labels, called: Website, IP.
2 Buttons, called: Get IP! , Cancel
2 Textboxes.
It should be looking something like this:
![[Image: 25so3fa.png]](http://i45.tinypic.com/25so3fa.png)
Now the coding part.
Above 'Public Class Form1' we place the code: Imports System.net
After that we'll code the button.
Double click on the button and enter this:
Now debug your program and try it out.
It really works!
My first tutorial ever made haha.
I hope you guys appericiate it!
And if my english isn't so well, i'm sorry.
I'm only 14 years old and i'm dutch haha.
This is my first tutorial for this site, i hope you like it!
This is a basic tutorial about: How to make a website ip finder?
Things you need:
Visual basic 2010/2012
Layout:
You will need to add:
2 labels, called: Website, IP.
2 Buttons, called: Get IP! , Cancel
2 Textboxes.
It should be looking something like this:
![[Image: 25so3fa.png]](http://i45.tinypic.com/25so3fa.png)
Now the coding part.
Above 'Public Class Form1' we place the code: Imports System.net
Code:
Imports System.net
Public Class Form1After that we'll code the button.
Double click on the button and enter this:
Code:
Dim Hostname As IPHostEntry = Dns.GetHostByName(TextBox1.Text)
Dim ip As IPAddress() = Hostname.AddressList
TextBox2.Text = ip(0).ToStringNow debug your program and try it out.
It really works!
My first tutorial ever made haha.
I hope you guys appericiate it!
And if my english isn't so well, i'm sorry.
I'm only 14 years old and i'm dutch haha.

![[Image: 2mm7r6w.png]](http://i49.tinypic.com/2mm7r6w.png)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


It's a good thing that you start this early on programming, you can become extremely good if you keep on learning and expanding your knowledge.
![[Image: 2YpkRjy.png]](http://i.imgur.com/2YpkRjy.png)
