Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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 ?

share|improve this question
3  
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

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.

share|improve this answer
    
Do you have a working download link by any chance? Original page seems down (also as to per some old comments on other side for some time now), same with the usual freeware-hubs, which only point to the original (non-functional) page. – Andreas Reiff Mar 26 '13 at 13:37
    
Ahh, that sucks, it was a pretty simple and straightforward utility. Well, I suggest Luigi Auriemma's stcpipe - it's command line but has some additional neat features like being able to observe connections live on stdout and such: aluigi.altervista.org/mytoolz.htm – LawrenceC Mar 26 '13 at 14:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .