Possible Duplicate:
Forward Incoming Traffic with Windows hosts file?
In Windows you can redirect traffic from a host by using the hosts
file.
C:\Windows\System32\drivers\etc\hosts
example
127.0.0.1 cp97384.edgefcs.net
Is there a way to do this with all traffic from a port? Something like
127.0.0.1 :1935
I have seen on linux you can do this with iptables
. I have heard of solutions for Windows XP but nothing for Windows 7.
The solution does not necessarily have to use the hosts
file, as I am pretty sure that is not even possible.
Listen on ipv4: Connect to ipv4:
Address Port Address Port
--------------- ---------- --------------- ----------
127.0.0.1 1935 64.210.72.117 1935
You may be able to do this with netsh interface portproxy command, read here for more info: http://technet.microsoft.com/en-us/library/cc776297%28WS.10%29.aspx
Never used it before but seems to be applicable here.