Skip to main content

How to Open Port 80 in Oracle Cloud (OCI) and Allow HTTP Access

How to Open Port 80 in Oracle Cloud (OCI) and Allow HTTP Access

If your web server is running on an Oracle Cloud instance but not accessible from the internet, you likely need to open port 80 (HTTP).

In Oracle Cloud (OCI), you must configure both:

  • Network Security Rules (Security List)
  • Server Firewall (firewalld)

🌐 Step 1: Open Port 80 in Oracle Cloud (Security List)

  1. Go to your instance in Oracle Cloud Console.
  2. Find the VNIC section.
  3. Click on Public Subnet.
  4. Open the associated Security List.
  5. Add a new Ingress Rule with:
  • Stateless: No
  • Source: 0.0.0.0/0
  • IP Protocol: TCP
  • Source Port Range: All
  • Destination Port Range: 80

This allows HTTP traffic from anywhere.


🔥 Step 2: Open Port 80 in Server Firewall (firewalld)

SSH into your instance and install firewalld (if not installed):

sudo apt install firewalld -y

Allow HTTP service:

sudo firewall-cmd --permanent --add-service=http

Or open port manually:

sudo firewall-cmd --permanent --add-port=80/tcp

Reload firewall:

sudo firewall-cmd --reload

🚀 Step 3: Start Your Web Server

Start your web server (NGINX, Apache, etc.):

sudo systemctl start nginx

Now access your server:

http://your-public-ip

❗ Common Issue

If port 80 is still not accessible:

  • Check Security List rules again
  • Ensure firewall is reloaded
  • Verify service is running
  • Check if port 80 is already in use

🔗 Related Guides

  • How to open port 80 & 443 in FirewallD
  • Check if a port is open in Linux
  • Kill process running on a port

✅ You should now be able to access your Oracle Cloud server via HTTP.

Comments

Popular posts from this blog

How to Uninstall an Odoo Module via Command Line (CLI)

How to Uninstall an Odoo Module via Command Line (Odoo Shell Guide) Uninstalling an Odoo module from the user interface is straightforward — until it isn’t. If your instance is broken, the UI won’t load, or a custom module causes errors, the safest way to proceed is to uninstall the module using the Odoo command line (CLI) . In this guide, you'll learn how to uninstall an Odoo module using the Odoo shell , when to use it, and how to avoid common mistakes that can break your database. When Should You Use the Command Line? The CLI method is especially useful in the following situations: The Odoo web interface is not accessible A module causes server startup errors You are working on a remote or headless server You are debugging or developing custom modules You need more control over the uninstall process Step-by-Step: Uninstall a Module Using Odoo Shell 1. Start the Odoo Shell Navigate to your Odoo installation directory and run: ./odoo-bin ...

Use CS50 Library in Your Local Machine Offline (C Language Setup)

Use CS50 Library in Your Local Machine Offline (C Language Setup) Make Your PC Ready for C Programming with CS50 In this guide, you will learn how to prepare your computer to run C programs locally and use the CS50 library offline. The following videos will walk you through all required tools and setup steps. Step 1: Install Visual Studio Code This video explains how to download and install Visual Studio Code on Windows 10. Step 2: Install C/C++ Compiler (GCC, G++, GDB) Learn how to install the C/C++ toolchain using MinGW-w64 and MSYS2. Step 3: Configure VS Code for C/C++ This step shows how to properly configure Visual Studio Code for C and C++ programming. How to Use CS50 Library Offline After completing the setup above, follow these steps to use the CS50 library locally without internet access: Download the CS50 library from GitHub Releases: https://github.com/cs50/libcs50/rel...