I wanted to access my web app hosting in App Service through IP Address

Ali Avais 0 Reputation points
2023-02-15T11:32:05.3766667+00:00

My web application is hosted in azure app service. Now I have purchased SMS services by using which i will be sending out the SMS but the SMS provider allows IPs which I will ask them to allow.

Now i am trying to access my app through public IP so that I can share that IP with them. I have configured custom domain bindings and SSL Certificate and i am able to access my app through custom domain. But still i am unable to access it through public IP. Is it possible to access it through public IP?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,937 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2023-02-16T15:18:53.7166667+00:00

    Hello @Ali Avais

    Unfortunately it is not possible to access App Service through IP Address.
    App Service is sharing infrastructure with other App Services being deployed in that same region, so there are effectively multiple apps sharing a pool of IP addresses.

    When a request comes in to an IP address with no hostname, the system will not know where to route it.

    I assume you are going to send SMS from your App Service and you need to know outbound IP addresses.
    You can get them in App Service settings

    How to fix outbound IPs for App Service - Microsoft Community Hub

    0 comments No comments

  2. Lex Li (Microsoft) 6,037 Reputation points Microsoft Employee
    2023-02-22T20:56:26.1233333+00:00

    There are other Azure services you can utilize to expose your App Service instance via a static public IP address, like https://cloudblogcenter.com/2022/06/05/configure-static-outbound-ip-address-for-azure-app-service/ but note that it comes with a higher cost.

    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.