question

tobyback avatar image
0 Votes"
tobyback asked ·

Connecting to web server (IIS on Server 2019 Datacenter) times out

I created a VM in Azure, set up a web page, disabled the firewall, added rules for port 80 in network security group and I can only reach the page with localhost and the internal IP, not the external. Is there anything else that I need to do to let computers on the internet connect to my website?

azure-virtual-machines
10 |1000 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.

tobyback avatar image
0 Votes"
tobyback answered ·

Yeah that tool shows it as closed. And now I see rules that deny all inbound and outbound ports but they cannot be modified and I can't raise my rules' priorities higher. What can I do about this?
8070-deny.jpg



deny.jpg (60.6 KiB)
· 2 ·
10 |1000 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.

@tobyback

Apologies in delayed response on this.

You can try creating a new rule with Priority number less than 300 on the same NSG.
As you mentioned that you are not able to modify the NSG rule, ensure you have required permissions on the Resource and RG.

1 Vote 1 ·

Thanks, this did the job :D

0 Votes 0 ·
vipullag-MSFT avatar image
1 Vote"
vipullag-MSFT answered ·

@tobyback

As you mentioned that you have already disabled firewall on OS side and opened port 80 on NSG, that should work. However, you can use this tool to check if port 80 is open on your public IP. If you are getting port as closed, then you also check if there are any other rule impacting the VM NIC on subnet level as shown in below screenshot.


7998-nsg.jpg


[Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.]



Disclaimer: This response contains a reference to a third party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.



nsg.jpg (47.4 KiB)
·
10 |1000 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.