Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • nginx is a great option along these lines, too; easy to set up and very powerful.
    – Jason C
    Commented May 10, 2021 at 21:58
  • @JasonC I agree! It's more declarative and better supported and AFAIK nginx uses port-forward too.
    – noob
    Commented May 11, 2021 at 8:14
  • Quick question: I ran the second command a while back, and I'm looking to remove this, as I have written an automatic forwarding server/loadbalancer, and would like to deploy it under port 80.
    – J-Cake
    Commented May 25, 2021 at 9:48
  • 2
    Keep in mind you may need to bind to 0.0.0.0 instead of 127.0.0.1 for external traffic.
    – Soheil
    Commented Sep 21, 2021 at 2:52
  • As soon as I start firewalld service on my machine, the port forwarding stop working. Any suggestion on what might be happening?
    – Jay Joshi
    Commented Oct 21, 2022 at 0:20