Share via

Hosted my website on azure linux vm but i can't access it says it took too long to respond

nopua 40 Reputation points
2023-12-25T09:34:29.2133333+00:00

the error on chrome

"This site can’t be reached 172.203.248.104 took too long to respond."

i have disabled my firewall and tried it on my browser it did nto work

i redeployed the vm it still did not work

i created inbound rules for port 80 still did not work

already used ngnix to bind to network

added the dns name and tried it still did not work

i do not know why or what to do

ssh access on putty and winscp works fine but accessing the website isnt working

i do not know if i need to bind to a custom domain first before it works i just wanted to test it and see if changes are needed

been on so many articles and or people having the same issues i dunno solutions i have seen are not working i am still a newbie to azure vm been only familiar with aws so i do not really know how else to resolve this

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author
  1. vipullag-MSFT 26,537 Reputation points Moderator
    2023-12-28T05:48:50.06+00:00

    Hello nopua

    As you are able to access the VM using putty & winscp, this confirms that the public IP is accessible on port 22.

    You can cross check using this link

    First, check if the web server is running and listening on the correct IP address.
    sudo netstat -tlnp | grep :80
    If the application is not listening, you need to check and change the configuration to make sure that the application listens on the port.

    Next, check if there are any firewall rules blocking incoming traffic.
    sudo iptables -L

    This command will show you the current firewall rules. If there are any rules blocking incoming traffic, you may need to modify the rules to allow incoming traffic on port 80.

    As you're testing the website on your PC using a public network, then it's possible that your ISP or network administrator is blocking incoming traffic on port 80. You can try accessing the website using a different network or a VPN to see if that resolves the issue.

    If you're still unable to access the website, then it's possible that there's an issue with the website configuration or the web server itself. You can try checking the error logs of the app to see if there are any errors that could be causing the issue.

    You can also try and create a window VM in the same network and access the website from this and see if it accessible within Azure or not. If this fails then the application configuration is wrong. You can do necessary modifications.

    Hope these trouble shooting steps will help resolve your issue.


1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 131.4K Reputation points MVP Volunteer Moderator
    2023-12-25T09:51:36.1266667+00:00

    Hi @nopua ,

    is your Linux Azure VM listening on port 80 at all? I am not good with Linux but the command could be lsof -i :80 | grep LISTEN.

    There is no need for a custom domain name. To test the connection via Chrome browser the IP 172.203.248.104 is fine.

    SSH and WinSCP you tested with 172.203.248.104 ?

    From which computer are you testing the http connection? From public internet or from an Azure internal computer?


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards Andreas Baumgarten


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.