Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

port

User_ZRUUONov 23 2020 — edited Nov 23 2020

Using free tier account I made Ubuntu instance and struggling opening ports such as 80 and 443. As can be seen in the attached image, ports 22, 80 and 443 are open and only port 22 is available to use. Can not access either to 80 and 443 from outside.
Please advise solution.
nobby
oci.png

Comments

Edwin van Meerendonk

checkquestion: does your compute have a public IP ( is it situated in a public subnet?)
That's one of the prerequisits

User_ZRUUO

Yes, OCI automatically provides public ip to new instance and I used provided ip address.

User_6P0XP

Hi everyone!
I'm facing the same problem. I created an instance to run my server which requires port 4665. I run the server but I can't access it from outside world. The server-client was tested in a private network and it worked perfectly. It's kind of WebSockets server, I also tried to run it on ports 80 and 443, with no success, I got: "Error on bind [13]: Permission denied". I even tried ports 50000+ but I still can't connect.
I opened several ports to run aaPanel and it works like a charm but I can't have my server work.
Screenshot_20211210_134310.png
Linux shows me that my desired port is open with "LISTEN"
Screenshot_20211210_135215.pngbut still no connection from outside world.
Any idea?

Adrian Birzu-Oracle

Try to the add the ports to the public zone:

$ sudo firewall-cmd --zone=public --permanent --add-port=80/tcp
$ sudo firewall-cmd --zone=public --permanent --add-port=443/tcp
$ sudo firewall-cmd --reload

User_ZRUUO

Hi Adrian,
result of

$ sudo firewall-cmd --zone=public --permanent --add-port=443/tcp

as per attached pics.

スクリーンショット 2021-12-17 192136.pngスクリーンショット 2021-12-17 192537.pngI musked my external address and remote address for safety sake.
With regards

User_ZRUUO

Unexpected result was found when deployed docker app to my OCI instance to which I have not been able to open 443 nor 8080. The docker app was constructed by following Dockerfile.
--------------
version: '2'
services:
wekan:
image: mquandalle/wekan
links:

  • wekandb
    environment:
  • MONGO_URL=mongodb://wekandb/wekan
  • test_db:/data/db
    restart: always
    volumes:
    test_db:
    ============
    After this deployment, the port check service showed port 8088 was opened and therefore I succeeded to open the web app through port 8088.
    It is something a inscrutable mistery
    nobby
1 - 6

Post Details

Added on Nov 23 2020
6 comments
300 views