I am looking for a TCP proxy - a utility that will connect to a port, read a TCP stream, and write it to clients that connect to it.

The key point here is that there may be more than one client, and each client should receive a copy of the stream.

Preferably windows solution, but Linux can be useful as well.

link|improve this question
feedback

4 Answers

Maybe socat? (http://www.dest-unreach.org/socat/)

Have a dig around in the examples (http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLES)

socat -u TCP4:source.example.com:123 TCP4-LISTEN:3334,reuseaddr,fork

Warning: untested!

link|improve this answer
feedback

Any SOCKS proxy will do -- on Linux, have a look at a Dante proxy or tinyproxy.

link|improve this answer
feedback

It sounds more like you are looking for some type of TCP based queueing or streaming service a pub/sub type thing.

Are you looking for something semantically similar to, say, an internet radio repeater? (where on stream comes in, and anyone else connecting joins into the live stream)

link|improve this answer
yes, that's a good way to put it. – Daphna Aug 30 '10 at 8:14
feedback

you can also do it by using iptables . of course you won't have the "control" that you 'd have if you deploy it in higher level. But it's still a quick and dirty solution :>

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.