How to access web application by URL domain name without adding beside :portnumber

Ehab A. Ghanem 0 Reputation points
2024-01-15T09:20:56.9566667+00:00

I have VM server cloud based. And the VM OS is ubuntu Linux and Developer team installed ERP Odoo service on VM OS and created database configuration. I tried to access this web application using by Azure Public IP Address:portnumber for example (20.120.50.9:8069) while this port is associated with Odoo service. So, I created new subdomain record from GoDaddy provider and added azure public IP Address as a value from GoDaddy | DNS Manage to resolve from Azure Public IP Address to Hostname or sub-domain name. After few minutes, I expected to access this web application with domain name URL for example (x.mybrowser.com) and it's not working. But with portnumber in URL is working for example (x.mybrowser.com:8069). So how do I configure and where for my end users who will be able to access on web application using by normal URL x.mybrowser.com without adding portnumber.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth 49,851 Reputation points Moderator
    2024-01-16T08:44:44.7866667+00:00

    @Ehab A. Ghanem

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well. I understand that you would like to access a web application running on a non standard port to be accesses without specifying the port number explicitly from browser.

    AFAIK, this is not feasible.

    However, you have two ways to work around this.

    1.

    You have to configure your service to listen on the well known port 80 and 443 for HTTP and HTTPS respectively instead of 8069

    2.

    You may introduce a Load Balancer or Proxy service such as Azure Load Balancer, Application gateway in front of your server.

    • This way, the Load Balancer would listen on Port 80 or 443
    • And would transfer the traffic to the server on Port 8069 (which is marked from client browsers)
    • i.e., Clients will not see the port number in the URL.

    For Load Balancer,

    For Application gateway,

    Should there be any follow-up questions or concerns, please let us know and we shall try to address them.

    Cheers, Kapil

    0 comments No comments

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.