Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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 –  ultrasawblade Mar 26 '13 at 14:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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