Hello, I need a help. I'm going to make a program for my own research.

Its main purpose is to forward any TCP/IP traffic originated from a local machine to any remote address at a given port, to another port on the same local machine. It should run only on this very machine, not require other programs/components on other machine. The remote address should be any address (not specific), and the original/forwarded port should be configurable. And it should work on Windows (under Cygwin is fine).

For example:
On my box, I'm trying to telnet using Win telnet client to any other box. Then this program wakes up, and forwards all my telnet traffic to a fake, working telnet daemon listening at a port other than 23 in my own box. Now, the telnet connection is established between the telnet client and the fake telnet daemon, both are running on my box.

Any hints/pointers are appreciated. Thanks in advance.

Peace always,
<jdenny>