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

Here's a thing: I have a piece of software listening on and only (I can choose the port). I want it to work as a server and accept connections from outer network. How can I forward the communication from (e.g.) to

I am using Ubuntu 11.04. Tried to look into iptables, but they don't actually offer the thing I want to archieve.

share|improve this question

migrated from May 10 '11 at 12:34

This question came from our site for professional and enthusiast programmers.

rinetd (…) looks like exactly something I want - except it needs to be downloaded and installed. I am looking for a system-settings solution. Hope there's one – Corkscreewe May 9 '11 at 21:50

You should change the ip address that the software is listening on.

If you bind it to the ip and port 80, then it will be able to listen on all interfaces ( and

share|improve this answer
I wish I could do that. Can't modify its settings though – Corkscreewe May 9 '11 at 21:36

You can easily make a tunnel using SSH.

something like: ssh -L 3307: user@ will tunnel traffic from port to

share|improve this answer

You can do this in your firewall (you should be using one). I use Firestarter and it has an easy interface for forwarding ports.

share|improve this answer

You must log in to answer this question.

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