Hi Ayan Mehdi,
Make sure the NSG associated with your Azure example allows traffic coming on the port that uses your web apps. By default, some ports such as only 80 and 443 are open. You may need to make inbound rules for other ports.
you can cinfigure NSG by Go to the Azure portal and Search and open for "Network Safety Group"-> Select your virtual machine or NSG attached to the app service->click on inbound safety rules in that add new inbound rules to allow traffic for essential ports you can give give required details
Port: 8080 (Example: Adjust according to app requirements)
Protocol: TCP
Source: Anyone (or if necessary, ban on specific IP)
Action: permission
Save changes.
Check if the dock container is binding for the correct port and IP address. Ensure that they are not bound to internal IPS that cannot be accessed from outside.
If you are using a custom domain, verify that your DNS record indicates the public IP. Wrong DNS settings can prevent access to your web app
Go to your domain registrar (eg, Godaddy, namecheap)-> Update A record to indicate the public IP address of your Azure VM.
If Azure are using DNS:
Open the Azure portal and search for "DNS zone".
Select your DNS zone and update the A record accordingly.
Use a tool like curls to test connectivity from the specific port running on your web apps. This can help you determine whether the problem is accompanied by application or network configuration.
https://learn.microsoft.com/en-us/azure/container-apps/troubleshooting?tabs=bash#review-ingress-configuration
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/troubleshoot-app-connection#quick-start-troubleshooting-steps
https://learn.microsoft.com/en-us/azure/container-apps/troubleshooting?tabs=bash#verify-networking-configuration
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.