Share via

I want to access custom port of my vm on azure via public ip from my browser

Roberto 1 Reputation point
Mar 4, 2021, 2:23 PM

I want to access my public ip of my azure vm via my browser using custom port i.e. 8080 or 9000.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,303 questions
{count} votes

4 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,236 Reputation points
    Mar 5, 2021, 5:13 PM

    @Roberto You will be doing steps similar to document but for the ports 8080 or 9000 as required i.e.,

    After you've created a VM that's configured to serve web requests on the TCP port 8080/9000, you can:

    • Create a network security group.
    • Create an inbound security rule allowing traffic and assign values to the following settings: Destination port ranges: 8080 or 9000
      Source port ranges: * (allows any source port)
      Priority value: Enter a value that is less than 65,500 and higher in priority than the default catch-all deny inbound rule.
    • Associate the network security group with the VM network interface or subnet.

    Hope this helps. If you require any further assistance, please feel free to reach out to us and we will be glad to assist you further. Thank you!

    • Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

  2. Andreas Baumgarten 115.3K Reputation points MVP
    Mar 7, 2021, 9:14 AM

    Hi @Roberto ,

    In my last post on this thread you can see a setup of a Windows vm with IIS listening on port 9000 and all the configuration details I did to get it working.
    Maybe this helps.
    https://learn.microsoft.com/en-us/answers/questions/127951/unable-to-access-custom-port-in-azure-vm.html

    ----------

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

    Regards
    Andreas Baumgarten

    0 comments No comments

  3. Andreas Baumgarten 115.3K Reputation points MVP
    Mar 7, 2021, 3:14 PM

    Hi @Roberto ,

    please run the Connection troubleshoot in Azure Portal on your vm. This will test the connection from public internet (your ip address of your computer) to the VM in Azure.

    75063-connectiontroubleshoot.jpg

    Another test could be done from a different vm (for instancen vm02) in the same subnet: Try a curl vm01:8080 from vm02 to see if this is working "inside the same subnet" and if the service is bound successfully on the nic of vm01 for inbound connection.

    ----------

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

    Regards
    Andreas Baumgarten

    0 comments No comments

  4. Roberto 1 Reputation point
    Mar 7, 2021, 4:04 PM

    75113-image.png

    But still failed to connect from public ip via port 8080.


Your answer

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