title: Opening a specific port in Oracle Cloud - Ubuntu 18
body: <p>The above one seems like an easy question, but believe me I have tried multiple methods but all seems to be in vain</p>
  <p>For example : Port is 8080</p>
  <p>1st - I followed many oracle docs and tried opening port 8080, but failed miserably</p>
  <p>2nd - I followed another stack overflow posts - <a href="https://stackoverflow.com/questions/54794217/opening-port-80-on-oracle-cloud-infrastructure-compute-node">Opening port 80 on Oracle Cloud Infrastructure Compute node</a></p>
  <p><a href="https://stackoverflow.com/questions/62778867/opening-port-19132-on-an-oracle-compute-instance-ubuntu-20-04">Opening port 19132 on an Oracle compute instance (ubuntu-20.04)</a>
  still no success</p>
  <p>3rd - I followed these oracle instructions and tried to open up the port - <a href="https://docs.cloud.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-ubuntu/01oci-ubuntu-apache-summary.htm" rel="nofollow noreferrer">https://docs.cloud.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-ubuntu/01oci-ubuntu-apache-summary.htm</a></p>
  <p>but not working -&gt; to my surprise, when I tried port no 80 with the same method,it worked well..but not working for any other port at all</p>
  <p>In short : ** I enabled port 8080 in Security rules in VNC - didnt work</p>
  <p>** I tried ,installing <code>firewalld</code> and allowing through that -&gt; didnt work for me</p>
  <p>** Tried this -&gt; didnt work</p>
  <pre><code>iptables -I INPUT 5 -i ens3 -p tcp --dport 8080 -m state --state NEW,ESTABLISHED -j ACCEPT
  </code></pre>
  <p>So I was hoping someone else can find me a solution Please to open up a port, or is there any way to completely disable my firewall so that I can use any port at all - currently I am able to listen to only port 80 from outside</p>
  <p>Thank you</p>