We can't access to aapanel via internet.

Irshad Ahmad Fareq 0 Reputation points
2025-05-03T07:10:37.4066667+00:00

Dear Sir,

We have set up a virtual machine on Azure with Ubuntu as the operating system and have also installed aaPanel. It is worth noting that all configurations, including port settings, have been completed both in aaPanel and on Ubuntu. Fortunately, we can access aaPanel from within the virtual machine; however, it is unfortunately not accessible via the external or public IP address. We would appreciate your cooperation in resolving this issue.

Hope to receive from you as soon as possible

Best Regard

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
754 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 121.3K Reputation points MVP Moderator
    2025-05-03T07:59:15.2133333+00:00

    Hi @Irshad Ahmad Fareq ,

    to access an Azure Virtual Machine using the Public IP address you need check the Network Security Group(s) (NSGs) of the Virtual Machine and/or the subnet of the Virtual Network.

    You need to have an Inbound allow rule in the NSG(s) for the configured port(s) of the aaPanel service running on the VM.

    Step 2: Check NSG settings for the network adapters.

    The same applies if you are running a dedicated Firewall in your Azure environment: Make sure there is an inbound rule configured to allow the connection to the VM running the aaPanel.


    (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

  2. Sai Prasanna Sinde 5,950 Reputation points Microsoft External Staff Moderator
    2025-05-05T05:11:01.07+00:00

    Hi @Irshad Ahmad Fareq

    In addition to the points provided by @Andreas Baumgarten , i would like to add a few more:

    First, make sure that you know the exact port aaPanel is using and that the service is running correctly on the VM and log into your VM via SSH. You can find the port using the aaPanel by using the below command:

    sudo bt 14
    

    The above command usually displays panel information, including the access address and port and the default is mostly 7800 or 8888, but you might have changed it. so, please verify it once.

    Kindly verify that the service is actively listening on that port for all network interfaces, not just localhost (127.0.0.1), you can use the below command to check it:

    sudo ss -tulnp | grep ':<PORT>'  #OR sudo netstat -tulnp | grep ':<PORT>'
    

    Replace <PORT> with your actual aaPanel port number and if it's listing you will see 0.0.0.0:<PORT> or else *:<PORT> or if it only shows 127.0.0.1:<PORT>, aaPanel itself is configured incorrectly to only listen locally.

    Kindly verify the NSG:

      Go to your VM > Settings > Networking > Inbound port rules > Click Add inbound port rule.

    Configure the rule:

    • Source: Any
    • Source port ranges: *
    • Destination: Any
    • Service: Custom
    • Destination port ranges: Port number aaPanel is using.
    • Protocol: TCP
    • Action: Allow
    • Priority: Choose a number. Lower numbers have higher priority. Make sure it's lower than any general deny rules that might conflict.
    • Name: Give a name and click on add.

    Kindly re-verify that you are using the correct Public IP address listed on the Azure VM's Overview page and make sure that you are accessing it correctly in your browser: http://<YOUR_PUBLIC_IP>:<PORT> or https://<YOUR_PUBLIC_IP>:<PORT> (if SSL is enabled).

    Kindly test connectivity from different compute (not the VM) by using telnet: telnet <YOUR_PUBLIC_IP> <PORT>


    Kindly let us know if the above helps or you need further assistance on this issue.

    0 comments No comments

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.