Results 1 to 4 of 4

Thread: need help with this proxy checker code

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    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 proxyort like 1.2.3.4:8080

    Thanks for any help

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    Re: need help with this proxy checker code

    Anyone ? I really need this

    Thanks

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2011
    Posts
    467

    Re: need help with this proxy checker code

    bump

  4. #4
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    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
  •  



Click Here to Expand Forum to Full Width