Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1351
  • Last Modified:

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) ?
0
beer9
Asked:
beer9
  • 2
1 Solution
 
gheistCommented:
inetd+nc
0
 
beer9Author Commented:
Thanks! :-)
0
 
gheistCommented:
There is another way to use mkfifo and two instances of nc per connection.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now