Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (1)

Powered by Vanilla. Made with Bootstrap.
How to make an IP Finder
  • undead
    Posts: 822
    How to make an IP Finder

    Open VB
    Press File>New Project and press OK.


    Now make:
    [list]
    [*]2 Labels[/*:m]
    [*]2 TextBoxes[/*:m]
    [*]1 Button
    [/*:m][/list:u]

    Label1 text: "Website:"
    Label2 text: "IP:"
    Button text: "Get IP"

    Put the first TextBox next to "Website:" and at (Name) put "TextSite"
    Put the second TextBox next to "IP:" and at (Name) put "TextIp"

    Go to the code and delete everything.

    Then copy and paste this code:


    Imports System.Net

    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Try
    If TextSite.Text.Contains(\"http://\") Then
    Dim iphe As IPHostEntry = Dns.GetHostEntry(TextSite.Text.Replace(\"http://\", String.Empty))
    TextIp.Text = iphe.AddressList(0).ToString()
    Else
    Dim iphe As IPHostEntry = Dns.GetHostEntry(TextSite.Text)
    TextIp.Text = iphe.AddressList(0).ToString()
    End If
    Catch ex As Exception
    MsgBox(ex)
    End Try
    End Sub
    End Class
  • Xin
    Posts: 3,251
    Thanks for the tut will help a lot of people
    Xin
  • ThraShEr
    Posts: 5
    Nice and basic, good tut.

    thanks alot
  • Nicee tutorial
  • GameOver
    Posts: 675
    nice tutorial dude! :D
  • thanks for the tutorial man ..!
  • undead
    Posts: 822
    No problem! :-)
  • Bursihido
    Posts: 406
    nice tutorial mate .:)......................................................