question

HimanshuDobriyal-8171 avatar image
0 Votes"
HimanshuDobriyal-8171 asked BryanTrach commented

Web app not accessible through public ip

i have azure free account where I create website using website. Service plan is f1. I am able to access website using url but not through ip. When trying it gives below error. Can’t access without config8540-12327757-bf2a-4038-adca-beeecffb5e82.jpeg custom domain.


azure-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Public IP address does not work with F1 plan, upgrade plan to S1 and test to see if that works.

0 Votes 0 ·

Don't forget to accept an answer to help future visitors :)

0 Votes 0 ·
ManuPhilip avatar image
0 Votes"
ManuPhilip answered HimanshuDobriyal-8171 commented

Hello,

You may check my blog created here : http://cloudcompute.info/how-to-configure-an-azure-app-from-marketplace-in-a-custom-domain/

This article will help you out to configure your webapp in custom domain

Thanks,
Manu

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is my test lab and do not have dns.

My question is why we can not access through ip when Its accessible through url.

0 Votes 0 ·
markxa avatar image
3 Votes"
markxa answered markxa edited

On a free plan you're sharing with other free plans on the same network address, so it can only tell which site to load if you use the domain name.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

There should be A record to resolve name ot ip to connect to particular website.

How a website can connect with no unique ip assign

0 Votes 0 ·
markxa avatar image markxa HimanshuDobriyal-8171 ·

When you load a webpage, the browser sends an HTTP header called "Host" with the name of the site you've requested (e.g. "Host: docs.microsoft.com"). The server uses that header to connect you to the right site. If you only use the IP address then Azure can't tell which site you need if you're on a plan with more than one site per IP.

0 Votes 0 ·
btardif avatar image
0 Votes"
btardif answered BryanTrach commented

Your app is sharing infrastructure with other apps 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.

The domain is needed (<yourappname>.azurewebsites.net) so that is can be routed to the right VM hosting it.

IF you NEED to access the app over an IP instead of a hostname you will need to get a dedicated IP address. To do this you will need a custom domain + certificate and create an IP SSL binding. For this to work you app will need to be hosted in a basic of above App Service Plan

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

For example when 3. Person create a website with free plan there is 3 A record created in dns with single IP.

My understanding the A record should have unique ip

Or there is a natting that converting public to private ip

0 Votes 0 ·
BryanTrach avatar image BryanTrach HimanshuDobriyal-8171 ·

@HimanshuDobriyal-8171 No, simply using an A record does not guarantee a dedicated IP address. As @btardif said, you'll need to setup an IP based SSL binding for your app.


0 Votes 0 ·