We help IT Professionals succeed at work.

How to do port forwarding using nc (netcat) ?

beer9
beer9 asked
on
1,455 Views
Last Modified: 2012-05-06
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) ?
Comment
Watch Question

Top Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks! :-)
Top Expert 2015

Commented:
There is another way to use mkfifo and two instances of nc per connection.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.