question

MukneHimani-2267 avatar image
0 Votes"
MukneHimani-2267 asked srbhatta-msft commented

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

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-machineswindows-10-networkazure-virtual-machines-networking
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @MukneHimani-2267 ,
just checking in once again to understand if the below information helped you. If it has, please don't forget to "Accept as Answer". If you have any queries, feel free to reach back.

0 Votes 0 ·

1 Answer

srbhatta-msft avatar image
0 Votes"
srbhatta-msft answered

Hello @MukneHimani-2267 ,
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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.