Alternatively, you can use rinetd for windows to do this. If you must use netcat in Windows, then i cant help you. Haven't tried it, nor researched the relevant information.
hi,
i can relay between two port in linux as using nc
-->mknode backpipe p
--->nc -lv 192.168.0.125 -p 12346 0<backpipe |nc -v 192.168.0.225 3389 |tee backpipe
basically what i do here i'm relay remote desktop port to local port then i can connect
rdesktop 192.168.0.125:12346 thats work fine for me.
my question is how can i do same thing in windows??
i'm try several way mention in following cheat sheet nothing is work for me.
netcat
Alternatively, you can use rinetd for windows to do this. If you must use netcat in Windows, then i cant help you. Haven't tried it, nor researched the relevant information.
my basic requirement is connecting two listening port when each client will come....
in Linux lets say two port are listening separate port
[HOST A]
nc -lv 192.168.0.125 -p 5555
nc -lvp 6666
so if i make a pipe like this
mknod p
nc -lv 192.168.0.125 -p 5555 0<backpipe |nc -v 192.168.0.125 6666 |tee backpipe
if any client come is port 5555 and in 6666
[Client B]
nc -v 192.168.0.125 5555
[Client C]
nc -v 192.168.0.125 6666
so [Client B] and [Client C] they can talk to each other
how can i do this is a windows machine ?? any idea ....
i have tried every option mentioned in that cheat but the relay goes to one way ...
lets say if i relay 12345 port to 12346 the if i say hi from 12345>12346 possible but the 12346>12345 port no data relay..its goes to one way relay..
i need two way communication
i'm try following way
[A listen on port 12345 and relay to 12346]
echo nc -v 192.168.0.225 12346 > relay.bat
nc -lvp 12345 -e relay.bat
[B listen on port 12346]
nc -lvp 12346
[C connect to port 12345 ]
nc -v 192.168.0.225 12345
now C can send data to B, But B can't send data to C
but as the cheat sheet say it should be what i'm missing