FG
💻 Software

How map/forward port under Ubuntu for other machine ? (localhost 555 -> 192.168.0.21:555)

Fresh5 days ago
Mar 15, 202614830 views
Confidence Score0%
0%

Problem

Any idea how I can create a "virtual" listening port on my Ubuntu computer porting for remote IP? I mean, something like this. When I write telnet 127.0.0.1 555, I want to get a connection to computer 192.168.0.21 on port 555 (where I have my server). Any idea?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How map/forward port under Ubuntu for other machine ? (localhost 555 -> 192.168.0.21:555)

Low Risk

I think iptables is what you're looking for and it should already be installed with Ubuntu. It may take a bit of trial and error but something like the commands below should do the trick: A more detailed explanation of what these commands do can be …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment