Before i start, do not post anything bad or mean. This can be done in CMD, but its a easy tutorial on how to make a windows forms application that also does it. I take my time to make these for HackForums, the least you could do is not post anything mean/disrespectful :) Okay, now on to my tutorial...
Step One(The GUI)
Make a small GUI that looks like mine, And move on to step two.
My GUI (Click to View)
Step Two(Coding The Button)
Make sure you have Imports System.Net On top of Public Class Form1
This is all copy+paste, so double click the button, and use this code..
.This is all copy+paste, so double click the button, and use this code..
Code
Try
If TextBox1.Text.Contains("http://") Then
Dim iphe As IPHostEntry = Dns.GetHostEntry(TextBox1.Text.Replace("http://", String.Empty))
TextBox2.Text = iphe.AddressList(0).ToString()
Else
Dim iphe As IPHostEntry = Dns.GetHostEntry(TextBox1.Text)
TextBox2.Text = iphe.AddressList(0).ToString()
End If
Catch ex As Exception
MsgBox(ex)
End TryThats all you need to do, i learned from t0fx from here, and i love him for it.
Debug and test it on Facebook. You should get this...
![[Image: 162793fd4a658ebf9ed75ce47d4707fe.png]](https://gyazo.com/162793fd4a658ebf9ed75ce47d4707fe.png)
![[Image: 162793fd4a658ebf9ed75ce47d4707fe.png]](https://gyazo.com/162793fd4a658ebf9ed75ce47d4707fe.png)


![[Image: 845c25bb1e6d47d8d347c2b44c6076a7.png]](https://gyazo.com/845c25bb1e6d47d8d347c2b44c6076a7.png)