Login Register






Get Website s IP address [Source Code] filter_list
Author
Message
Get Website s IP address [Source Code] #1


By Using This You Need
Textboxs
Textbox1 for Website
textbox2 for Ip
Button1 for Get Ip

Click the Button1 and Add this Code

Code:
private void Button1_Click(System.Object sender, System.EventArgs e) { try { if (TextSite.Text.Contains("http://")) { IPHostEntry iphe = Dns.GetHostEntry(TextSite.Text.Replace("http://", string.Empty)); TextIp.Text = iphe.AddressList[0].ToString(); } else { IPHostEntry iphe = Dns.GetHostEntry(TextSite.Text); TextIp.Text = iphe.AddressList[0].ToString(); } } catch (Exception ex) { Interaction.MsgBox(ex); } } }

for vb.net
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 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 Try End Sub



[Image: iiiiiiiiii.jpg]

(This post was last modified: 09-25-2011, 08:52 PM by Aewms.)

Reply

RE: Get Website s IP address [Source Code] #2
Nice Codes , Keep up your works there
[Image: Wfxdx.png]

Reply

RE: Get Website s IP address [Source Code] #3
In my opinion i don't need a script for it.
There are so much online sites where you can get a website's IP with 1 click.
Sorry, but useless -.-
Feel free to PM me.


Reply

RE: Get Website s IP address [Source Code] #4
In my opinion i don't need a script for it.
There are so much online sites where you can get a website's IP with 1 click.
Sorry, but useless -.-
Feel free to PM me.


Reply

RE: Get Website s IP address [Source Code] #5
Practically this is useless indeed. You can find a domains' IP by just pinging it. Every OS has such a basic network functionality. But for educational purposes is just fine.

Reply