i have been trying to get netcat receiving data then tee it forwards only to 2 more netcat ports, but it seems to only work to 1.

here i have a process connecting to netcat listening on port 3010 with a udp stream

i have 2 more terminals open with net cat listening on ports 3012 and 1013

the data only appears on port 3012

nc -u -l 3010 | tee nc localhost 3012 | nc localhost 3013

I have tried a few other ways but this seems to be the best i can get. and if i can get working i want to put it in a bash script.

can any one set me straight on how to do this please?