Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Forward Incoming Traffic with Windows hosts file?

In Windows you can redirect traffic from a host by using the hosts file.



Is there a way to do this with all traffic from a port? Something like :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
--------------- ----------  --------------- ----------       1935   1935
share|improve this question

marked as duplicate by jscott, RobM, Skyhawk, Khaled, Scott Pack May 24 '12 at 20:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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 1:30

You may be able to do this with netsh interface portproxy command, read here for more info:

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

Never used it before but seems to be applicable here.

share|improve this answer
Even if I include the hostname, this command does not work. – Steven Penny May 19 '12 at 23:31
Can you post your output from "netsh interface portproxy show v4tov4" ? – floyd Jun 2 '12 at 16:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.