Question

Can't reach https://my-IP-address:8443

Posted October 7, 2019 1.5k views
DigitalOcean

Hello. Please, help me.
I have installed Tomcat 9 on my CentOS 7.6 droplet, SSL certificate installed, configured https connection, configured CentOS firewall to enable 8443 port, but couldn’t connect in browser over https://IP-address:8443
I have another droplet CentOS 7.4 on DO. There is SSL certificate installed on it as well and https connection work on it without any problem.
I have no idea what’s wrong(((

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @valentinkallaur,

Please enter into your droplet and type the following and provide the results here

netstat -tulpen | grep 8443

It’s possible you haven’t actually configured Tomcat to listen to that port thus not actually showing you anything on it.

Regards,
Kalin

  • I ran
    netstat -tulpen | grep 8443 but the was no answer, just
    [admin@…]# sudo netstat -tulpen | grep 8443
    [admin@…]#

    Previously, I’ve ran this command
    sudo netstat -nlp
    and there was no line in answer about port 8443 is listened.
    Sorry, can’t attach screenshots of terminal (((

    • Hi @valentinkallaur,

      This would confirm my assumption. Noting is actually listening on port 8443. What do you wish to listen on that port?

      • Good evening. Thank you for your help. I appreciate it very much!! I need to get access from browser to Tomcat 9 home page (installed on my CentOS 7 droplet) over https://(domain.name.or.IP-address:8443. Tomcat 9 installed, SSL certificate bought and installed, tag <connector> configured to get access over https in server.xml file, keystore created and configured, firewall was configured to open port 8443 permanent (sudo firewall-cmd –zone=public –add-port=8443/tcp –permanent), https on firewall opened as well (sudo firewall-cmd –permanent –zone=public –add-service=https). I have another droplet on DO configured to get access over https and it works correctly. So, I have no idea what’s wrong. I can’t see port 8443 is listening by the command sudo netstat -nlp here is the result https://drive.google.com/drive/folders/1IZ-nC1jZWMaGDxZ8Cp5W1PJEcXqMFkIk?usp=sharing

        • Hi @valentinkallaur,

          I see, in that case, I’ll recommend you to check the following article - Article . Yes this article is for Ubuntu but the principle is the same.

          You just need to replace

          apt-get
          

          with

          yum
          
          by Justin Ellingwood
          Apache Tomcat is a web server and servlet container that is used to serve Java applications. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. In this tutorial, you will install and configure Tomcat 9 on your Ubuntu 18.04 server.
Submit an Answer