This can be done using socat:
socat TCP-LISTEN:5000,fork TCP:localhost:9000
This redirects all tcp connections from port 5000 to 9000. To run this command, the 5000 port shouldn't be already in use.
This can be done using socat:
socat TCP-LISTEN:5000,fork TCP:localhost:9000
This redirects all tcp connections from port 5000 to 9000. To run this command, the 5000 port shouldn't be already in use.