Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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 :>

share|improve this answer

Maybe socat? (

Have a dig around in the examples (

socat -u TCP4-LISTEN:3334,reuseaddr,fork

Warning: untested!

share|improve this answer
For socat, perhaps my Stack Overflow answer helps in this scenario. – lkraav Jul 6 '12 at 12:51

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

share|improve this answer

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)

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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