Skip to content

Port Forwarding

tago edited this page Apr 27, 2024 · 4 revisions

How to Port Forward for Flare

Port forwarding is a technique used to allow external devices to access services hosted on a private network. If you're running an Apache server on your network and want to make it accessible from the internet, you'll need to set up port forwarding for port 80 and 5000, which is the default port for HTTP traffic, and the flask API. This guide will walk you through the steps required to configure port forwarding for port 80 and 5000 on your network router, allowing incoming HTTP requests to reach your Apache server.

Port Forwarding

ALL ROUTERS ARE DIFFERENT ⚠️ PLEASE SEARCH FOR A GUIDE FOR YOUR SPECIFIC PROVIDER

Access Router Configuration

  1. Open a web browser on a device connected to your network.
  2. Enter your router's IP address in the address bar. This is typically 192.168.1.1 or 192.168.0.1. If you're unsure, consult your router's manual or documentation.

Login to Router

  1. Enter the router's username and password when prompted. If you haven't changed these, the default credentials are often admin for both username and password.
  2. Once logged in, navigate to the port forwarding section of your router's settings. This is usually located under the "Advanced" or "Security" tab.

Add Port Forwarding Rules

Port 80

  1. Look for an option to add a new port forwarding rule or virtual server.
  2. Enter a name for the rule, such as "Apache Server"
  3. Specify the protocol as "TCP."
  4. Set the external port range to 80 (HTTP uses TCP port 80 by default).
  5. Enter the internal IP address of your Linux server.
  6. Set the internal port to 80.
  7. Save the changes.

Port 5000

  1. Look for an option to add a new port forwarding rule or virtual server.
  2. Enter a name for the rule, such as "API"
  3. Specify the protocol as "TCP."
  4. Set the external port range to 5000 (HTTP uses TCP port 80 by default).
  5. Enter the internal IP address of your Linux server.
  6. Set the internal port to 5000.
  7. Save the changes.

Test Port Forwarding

You can use online tools like "CanYouSeeMe.org" to check if port 80 is open and accessible from the internet.

Now you need to set up Cloudflare for server IP protection

Clone this wiki locally