Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mendapatkan IP website [vb.net]
#2
(12-01-2011, 09:30 PM)72Dark Wrote: Butuh :
Textboxs
Textbox1 untuk url
textbox2 untuk Ip
Button1 untuk Get Ip
---------------------------------------
klik button1 trus masukin code berikut :
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



gmna nih kang cara nya ubah jadi apa ?
Reply


Messages In This Thread
Mendapatkan IP website [vb.net] - by 72Dark - 12-01-2011, 09:30 PM
RE: Mendapatkan IP website [vb.net] - by nackkecil - 12-02-2011, 01:01 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)