469,612 Members | 1,629 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

TCPClient and Proxies

This has been discussed in a prior thread but there was no solution
proposed. Also, using WebRequest is not viable since we need a keep-alive
connection. Can anyone provide any information on using the TCPClient class
(or other) via proxies and whether or not this is possible?

Regards

Wwal
Nov 16 '05 #1
5 5814
Hi Wal:

Are you talking about the HTTP/1.1, Keep-Alive header? The default
setting for the KeepAlive property of an HttpWebReqeust instance is
true.

--
Scott
http://www.OdeToCode.com

On Thu, 29 Jul 2004 15:16:09 +1000, "Wal Turner" <vo****@hotmail.com>
wrote:
This has been discussed in a prior thread but there was no solution
proposed. Also, using WebRequest is not viable since we need a keep-alive
connection. Can anyone provide any information on using the TCPClient class
(or other) via proxies and whether or not this is possible?

Regards

Wwal


Nov 16 '05 #2
Hi Wal,

What is exaclty what you wanna do?

If you know there is a proxy then you have to connect to the proxy, then it
depend of the proxy implementation how to manage the connection, I haven't
done nothing with a proxy but I do remember from several years ago that you
had to compile telnet, ftp, etc to be able to use socks5 (under linux) cause
at the least the establishment of the connection should be different.

I advise you check the documentation of the proxy you plan to support.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Wal Turner" <vo****@hotmail.com> wrote in message
news:u2****************@TK2MSFTNGP11.phx.gbl...
This has been discussed in a prior thread but there was no solution
proposed. Also, using WebRequest is not viable since we need a keep-alive
connection. Can anyone provide any information on using the TCPClient class (or other) via proxies and whether or not this is possible?

Regards

Wwal

Nov 16 '05 #3
Thanks for your replies.
Scott we are not using Http at all - we're connecting to a TCPListener.
Basically it appears that TCPClient and TCPListener don't work when over a
socks proxy. I found this product online

http://www.etive.com/software/dotEtiveSocket/

and I am looking for a cheaper solution (read free) :D

I'm suprised this doesnt pop up all the time or hasnt been handled by .NET
seeming as many corporations run via a proxy and involve applications that
arent just web requests. Also Scott when I mentioned 'keep-alive' i just
meant streaming, sorry about that.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uK*************@TK2MSFTNGP11.phx.gbl...
Hi Wal,

What is exaclty what you wanna do?

If you know there is a proxy then you have to connect to the proxy, then it depend of the proxy implementation how to manage the connection, I haven't
done nothing with a proxy but I do remember from several years ago that you had to compile telnet, ftp, etc to be able to use socks5 (under linux) cause at the least the establishment of the connection should be different.

I advise you check the documentation of the proxy you plan to support.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Wal Turner" <vo****@hotmail.com> wrote in message
news:u2****************@TK2MSFTNGP11.phx.gbl...
This has been discussed in a prior thread but there was no solution
proposed. Also, using WebRequest is not viable since we need a keep-alive connection. Can anyone provide any information on using the TCPClient

class
(or other) via proxies and whether or not this is possible?

Regards

Wwal


Nov 16 '05 #4
Wal:

Ok, it makes sense now :) Sorry I cannot give you any insight on the
proxy issue.

--s

On Fri, 30 Jul 2004 13:53:28 +1000, "Wal Turner" <vo****@hotmail.com>
wrote:
Thanks for your replies.
Scott we are not using Http at all - we're connecting to a TCPListener.
Basically it appears that TCPClient and TCPListener don't work when over a
socks proxy. I found this product online

http://www.etive.com/software/dotEtiveSocket/

and I am looking for a cheaper solution (read free) :D

I'm suprised this doesnt pop up all the time or hasnt been handled by .NET
seeming as many corporations run via a proxy and involve applications that
arent just web requests. Also Scott when I mentioned 'keep-alive' i just
meant streaming, sorry about that.


--
Scott
http://www.OdeToCode.com
Nov 16 '05 #5
Hi Wal,

the communication between your app and the socks server need to follow
some protocol. So, your app needs in a very specific way to tell the
socks server that it needs to connects to a given IP, on a given port,
to provide username and password, etc. You can read here about socks 5
protocol, so you can implement your own connection classes:

http://www.faqs.org/rfcs/rfc1928.html

Or, a simple googleing shows this paid class (49$) :
http://www.juriksoft.net/prog_proxy.html

and this free:
http://www.codeproject.com/csharp/ZaSocks5Proxy.asp

Hope that helps
Sunny

In article <et**************@TK2MSFTNGP12.phx.gbl>, vo****@hotmail.com
says...
Thanks for your replies.
Scott we are not using Http at all - we're connecting to a TCPListener.
Basically it appears that TCPClient and TCPListener don't work when over a
socks proxy. I found this product online

http://www.etive.com/software/dotEtiveSocket/

and I am looking for a cheaper solution (read free) :D

I'm suprised this doesnt pop up all the time or hasnt been handled by .NET
seeming as many corporations run via a proxy and involve applications that
arent just web requests. Also Scott when I mentioned 'keep-alive' i just
meant streaming, sorry about that.

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:uK*************@TK2MSFTNGP11.phx.gbl...
Hi Wal,

What is exaclty what you wanna do?

If you know there is a proxy then you have to connect to the proxy, then

it
depend of the proxy implementation how to manage the connection, I haven't
done nothing with a proxy but I do remember from several years ago that

you
had to compile telnet, ftp, etc to be able to use socks5 (under linux)

cause
at the least the establishment of the connection should be different.

I advise you check the documentation of the proxy you plan to support.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Wal Turner" <vo****@hotmail.com> wrote in message
news:u2****************@TK2MSFTNGP11.phx.gbl...
This has been discussed in a prior thread but there was no solution
proposed. Also, using WebRequest is not viable since we need a keep-alive connection. Can anyone provide any information on using the TCPClient

class
(or other) via proxies and whether or not this is possible?

Regards

Wwal



Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Daniel | last post: by
3 posts views Thread by מורדי | last post: by
3 posts views Thread by Ricardo Quintanilla | last post: by
15 posts views Thread by jin | last post: by
reply views Thread by Torsten Brasch | last post: by
reply views Thread by aladdinm1 | last post: by
4 posts views Thread by Peter | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.