Not able to connect the Tomcat server installed in VM through outside network

Ramesh Subramanian 1 Reputation point
2020-08-12T08:19:41.557+00:00

Hi Team,
I have created a VM, then installed Java / Tomcat Server inside the VM. After installed the Tomcat server, I could access the Tomcat server's home page using http://localhost:8080/ inside VM.
I have assigned the DNS name for the VM as well. I could not access the same Tomcat server home page using the DNS assigned to the VM, inside the VM itself.
I have setup the InboundRule for port 80 and 443 to the NSG tied to the VM. (The NSG is tied to the subnet anyway).
I have setup the Windows defender firewall Rule as well with port 80 to be allowed. Still, I could not access the tomcat server's home page with DNS name configured (in other words, with public ip configured) inside the VM and outside the VM.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
777 questions
{count} votes

1 answer

Sort by: Most helpful
  1. suvasara-MSFT 10,076 Reputation points Moderator
    2020-08-19T09:14:26.21+00:00

    Hello,

    Is this issue got resolved? If not try adding the hostname to Tomcat server's workers.properties file and see if it is serving the page on this virtual host. Let us know if this doesn't help in your case.


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.