|
-
Aug 24th, 2011, 04:05 PM
#1
Thread Starter
Hyperactive Member
need help with this proxy checker code
Hi, i found this small code through google, it works but i need it changing a little
VB CODE
Code:
Dim host As String
Dim port As Integer
host = TextBox1.Text
port = TextBox2.Text
' Next part creates a socket to try and connect on with the given user information.
Dim hostadd As System.Net.IPAddress = System.Net.Dns.GetHostEntry(host).AddressList(0)
Dim EPhost As New System.Net.IPEndPoint(hostadd, port)
Dim s As New System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, _
System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp)
Try
s.Connect(EPhost)
Catch
End Try
If Not s.Connected Then
MsgBox("program did not connect")
Else
MsgBox("program did connect")
End If
End Sub
What it does is checks the given proxy ip and port with textbox1 and textbox2.
What i need is for it to just check textbox1 but have the proxy in the format of proxy ort like 1.2.3.4:8080
Thanks for any help
-
Aug 25th, 2011, 02:59 AM
#2
Thread Starter
Hyperactive Member
Re: need help with this proxy checker code
Anyone ? I really need this
Thanks
-
Aug 25th, 2011, 01:38 PM
#3
Thread Starter
Hyperactive Member
Re: need help with this proxy checker code
-
Aug 26th, 2011, 04:05 AM
#4
Fanatic Member
Re: need help with this proxy checker code
use google to find how to change the proxy in IE.
Then, i would set the proxy, and try to make a request with the webclient.
You've got to figure, connecting also relies on what type of proxy it is.
Some let you make only TCP connections, others UDP only, others TCP (Port 80), others TCP (Port ANY).
So, it all depends on what you're trying to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|