0

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
Zombo
  • 1
  • 1
  • 16
  • 18
  • Just to clarify, are you trying to redirect traffic coming FROM this windows machines or TO this windows machine? I am trying to understand what you are trying to accomplish. – MikeAWood May 22 '12 at 01:30

1 Answers1

1

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

netsh interface portproxy add v4tov4 listenport=1935 listenaddress=127.0.0.1 connectport=1935 connectaddress=[ip of hostname]

Never used it before but seems to be applicable here.

floyd
  • 1,530
  • 4
  • 18
  • 30