0

I am running a NodeJS app on port 5000 on an Ubuntu 18.04 VM on Azure and I need external access to that app. I created the inbound and outbound rules and double checked the settings based on this guide https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal but so far I am unable to access the app using my public ip and port.

enter image description here

Is there anything else I should look for? Most guides I found suggest adding outbound and inbound rules. I also checked the firewall in Ubuntu it's disabled by default.

Found this post as well (Azure Network Security Group - Inbound - Ports Not working).
Running netstat -ant|grep 5000shows this:

enter image description here

Any ideas?

2
  • You programmed your app to only listen for connections on the local host. Our sister site Stack Overflow can help you with fixing your program. – Michael Hampton Nov 25 '20 at 18:17
  • @MichaelHampton - Thanks. That solved it. – daydr3am3r Nov 26 '20 at 19:57
0

Those rules are on the Network security group (NSG). Make sure that the NSG is attached to either the subnet or the nic (or both).

Also, make sure that you have the ports open on the operating system as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.