I would like to connect to a server through TcpClient class.
As I'm going through ISA Proxy which requires a NTLM authentication, I want to know how do I associate webproxy class with tcpclient (if thats possible).
I could do something like this with WebRequest class,
WebRequest objRequest = WebRequest.Create("http://www.someurl.com/abc.xml"); <br />
objRequest.Proxy = System.Net.WebProxy.GetDefaultProxy();<br />
objRequest.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;<br />
WebResponse objResponse = objRequest.GetResponse();<br />
but how do I do the same with TcpClient, I could not find a way to associate a proxy with TcpClient class.
I tried with
_socket = new TcpClient("http://www.google.com", port); <br />
for which i got the message saying host not found.
Thanks a lot.