VM on Azure: Tomcat not wokring on public IP

Hemant Shah 6 Reputation points

I have create on VM on Azure with free sub.
I have installed tomcat 9 on Azure VM.
I am able to access tomcat default page from http ://localhost:8080/ as well with private ip http ://
But not able too access with public IIP from outside as well within VM browser.

Please suggest Do I need any settings.

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
216 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hemant Shah 6 Reputation points

    I have same configuration as above also IIS server page I am able to access from public IP with 80.

    Issue was you need to enable firewall in VM for tomcat server.
    From Control Panel\System and Security\Windows Defender Firewall
    than select Allowed apps... and select tomcat 9 from bin folder.
    Also always install tomcat with binary(with.exe installation) do not copy zip or tar file.

    No comments

  2. Pradeep Kommaraju 2,521 Reputation points

    Hi @Hemant Shah

    Thank you for reaching out to Microsoft Q&A Platform

    This makes me think that perhaps your tomcat is listening on instead of your public ip.
    Can you please try to navigate to NGS of the VM and make sure port 80 and 8080 are open as well ?


    Hope this helps , And request you to accept the answer if it works .

    Thanks& Regards,,

    No comments