Trouble running application on Azure VM (network/IP issue)

Mukne, Himani 1 Reputation point
2022-02-24T06:23:45.34+00:00

I am trying to host an application on the Azure VM running Windows OS. It works perfectly fine on a local PC. I am to run the app on port 4001. When I type "http://<public IP>:4001 on the IE browser, it gives me the error, "page can't be displayed". So far, I have done the following:

  1. disabled the firewall
  2. set the IE enhanced security configuration as off
  3. opened ports 443, 4001 and 80 from the Azure portal with second priority to the rule (first being the RDP rule)

I am not sure how to troubleshoot this. Please help

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 questions
{count} votes

1 answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-02-24T15:25:23.617+00:00

    Hello @Mukne, Himani ,
    Thanks for posting your query on Microsoft QnA.
    I understand you are trying to reach your application from within the VM but unable to.
    You mentioned you are typing "http://<public IP>:4001" on the IE browser, and it works perfectly fine on local PC. Does that mean that the application works fine locally on the local machine which is on prem and not on Azure?
    Or , does that mean you are able to access the application locally on the Azure VM itself? This would mean if you browse to "http://localhost:4001" or "http://<private-ip>:4001", your application will be served successfully.
    If you are not able to access the application using the local host name or the private ip address, then please recheck if the application is listening on the expected 4001 port at the OS level using netstat -ano command.

    You can use this port-check tool to see if the required port is reachable or not from outside your VM.
    Let me know if this helps. Feel free to reach back by commenting under this post and tagging me.

    -------------

    Please don't forget to "Accept as Answer" and "Upvote" if you think my response was helpful, so that it can help others in the community looking for help on similar issues.

    0 comments No comments