Hello DaniWeb,

I am trying to retrieve the ip of the current proxy in use but it either throws an error saying "Unable to connect to the remote server" or it goes really, really slow and crashes the program for at least 10seconds. I have tried using multiple proxies from http://www.hidemyass.com/proxy-list/ but none of them work properly. Any help? Here is my code:

        Dim curProxy As String = ""

        Dim req As HttpWebRequest = DirectCast(HttpWebRequest.Create("http://www.ipchicken.com"), HttpWebRequest)
        req.Proxy = New WebProxy(curProxy)
        Dim res As HttpWebResponse = req.GetResponse
        Dim srcS As New StreamReader(res.GetResponseStream())
        Dim src As String = srcS.ReadToEnd()
        'WebBrowser1.DocumentText = src
        Dim ip() As String = GetBetweenAll(src, "<b>", "<br>")
        'MsgBox("Total ipS: " & ip.Count())
        Label4.Text = "Using Proxy " & ip(0)

Edited by Yorkiebar14: More Precise

5 Years
Discussion Span
Last Post by Yorkiebar14
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.