473,379 Members | 1,200 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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 6100
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Daniel | last post by:
TcpClient close() method socket leak when i use TcpClient to open a connection, send data and close the TcpClient with myTcpClientInstance.Close(); it takes 60 seconds for the actual socket on...
3
by: מורדי | last post by:
Hi, I'm writing a client/server application in which the client send a series of screenshots to the server to be saved using the tcpclient. in most cases the first screenshot is transmitted ok...
4
by: WATYF1 | last post by:
Hello. I'm writing a VB.NET app to check email message counts for both POP3 and IMAP4. I'm using TCPClient to connect, and a NetworkStream to send simple commands. It's a very simple bit of code,...
3
by: Ricardo Quintanilla | last post by:
i had a problem whom i do not know how to explain. i was using a TcpClient (System.Net.Sockets.TcpClient) object to send and receive data to an AS400 socket. Two months ago it started to work...
15
by: jin | last post by:
hi, i'm trying using the tcpClient to get a html file from net, instead of using WebClient or WebRequest, the main part of the source code is like this: private void tcpconnect() { tcp=new...
0
by: Torsten Brasch | last post by:
Hi All and Happy New Year ;) I have a very strange problem with System.Net.Sockets.TcpClient(). For some reason, the number of bytes I can receive is limited to 5460 bytes. I made sure that the...
1
by: hamil | last post by:
I am having trouble using the TcpListener and TcpClient classes. At the end of this post is server code that runs, and a class whose purpose is described below. I need to know when the client...
0
by: aladdinm1 | last post by:
Dear all, I have a client application which working just fine except in one case: when it's behind a proxy. I tested it behind MS ISA with enabled Socks service. I tried everything to make it...
4
by: Peter | last post by:
Hi I rewrite an old C Programm to C# (Framework 1.1) - it is an easy FTP- Client. I create a "Command-Channel" using TcpClient, a "Command-Reader" and a "Command-Writer" to speak with the FTP...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.