Link to home
Start Free TrialLog in
Avatar of beer9
beer9Flag for India

asked on

How to do port forwarding using nc (netcat) ?

How can I do port forwarding using the nc command, so that a host can't act as web server ?
I am looking for configuration something like this..

Client open test.com on his web browser

test.com forward port 80 to example.com [example.com is running as a web server]

so client would get all the web service of example.com while typing test.com on his web browser.

Is there any workaround on this using netcat (nc) ?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of beer9

ASKER

Thanks! :-)
There is another way to use mkfifo and two instances of nc per connection.