I want to forward the packets from a port to another port within the localhost

How can I port forward from 127.0.0.1:3490 to 127.0.0.1:4490 ?

link|improve this question
2  
What OS are you using, and if you could explain why you want to do this their might be simpler approaches than port forwarding. – Paul Dec 9 '11 at 2:44
feedback

1 Answer

You need a proxy server or other program that is listening on 127.0.0.1:3490 and forwarding traffic to 127.0.0.1:4490.

Windows, try Trivial Proxy. Linux, check your distribution for rinetd.

Under Linux, it's completely possible to do this with iptables - probably looking at using the REDIRECT target in the PREROUTING nat table.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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