Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine Azure website outgoing IP Address?

Tags:

Is there a way to determine the outgoing IP address of a Website (not a webrole)?

I've done a reverse looking up *.azurewebsites.net which returns one address, however when I manually check it (by having the webapplication visit a webserver i control), it shows a completely different IP.

What is the right way of doing this?

like image 717
Richie Lai Avatar asked Jan 30 '14 07:01

Richie Lai


People also ask

What is outbound IP?

The outbound addresses are what other devices/services would see if your app makes an outbound network call (calls another API etc.). There is a set of them and they are all shared by other apps, your app will use one of them on each connection.

What IP address does Azure use?

1.0 : Network address. 192.168. 1.1 : Reserved by Azure for the default gateway.


1 Answers

Azure website can use a random IP just out of 4 IP addresses per scale unit.

For a list of IP addresses per scale unit and instructions about how to determine your site's scale unit, take a look here.

UPDATE: seems that all the scale unit's 4 IP addresses can now be found in the new Azure portal and the forum post will no longer be updated.

From July 20th, 2015 onwards, this post will no longer be updated with IP addresses. Instead this information can now be found in a web app's properties using the new portal (portal.azure.com).

To find the outbound IP addresses:

  1. Browse to the details of your specific web app using the new portal at portal.azure.com.

  2. Towards the top of the details for your web app, there is a link for "All settings". Click the link.

  3. Clicking "All settings" will open up a list of web app information that you can drill into further. The specific information to drill into is "Properties". Click on the "Properties" selection.

  4. Within the "Properties" UX, there is a textbox showing the set of Outbound IP Addresses. Using the icon to the side of the "Outbound IP Addresses" textbox you can select all of the addresses. Pressing Ctrl+C will then copy the addresses to the clipboard.

like image 69
jtmnt Avatar answered Sep 22 '22 12:09

jtmnt