Skip to main content

Issues while debug Auto-Hosted app in Office 365 (SharePoint Online)

I am working on SharePoint app model with office 365. I had created a Auto-Hosted app in Visual Studio 2013 and trying to debug this app but I have faced a lot of issues in this process.
I have tried to so the same in another environment (from home) and I am able to debug the same app so I have only one option to lodged a support ticket to Microsoft for the same, MS has checked my environment and came to know that few of URL and IP's is blocked on my office network. Microsoft has suggested to open that URL (white list) in network firewall.

Microsoft has provided an article and the same is describe below.

SharePoint Online URLs and IP Addresses

IT administrators might want to control communication to specific SharePoint Online sites through an on-premises firewall. To do this, you’ll need to know the IP address ranges used by SharePoint Online.

Outgoing IP Address Ranges

Ports in your on-premises firewall might need to be opened to accept network traffic originating from Microsoft Datacenter IP addresses. For the most part, SharePoint Online works through the browser using the HTTP or HTTPs protocols over ports 80 and 443, with some outbound traffic on port 25 (SMTP). The IP address ranges used by SharePoint Online are listed below. Note that because Project Online is a SharePoint Online service, these IP address ranges also apply to Project Online:

Note : If you see issues after successfully setting up firewall ports, please check for updates to the IP values in this article.


URLs
157.55.225.160/27
157.55.225.224/27
157.55.227.128/27
157.55.229.160/27
157.55.231.32/27
157.56.113.0/27
157.55.238.128/27
213.199.179.0/27
134.170.212.0/23
191.234.12.0/23
134.170.204.0/23
42.159.34.0/27
10.41.30.0/24
42.159.38.0/23
157.56.132.128/27
157.56.132.160/27
134.170.200.0/23
134.170.208.0/23
191.234.152.0/23
157.56.150.32/27
157.56.24.128/27
207.46.203.128/27
157.55.56.0/27
157.55.62.128/27
157.55.62.96/27
157.55.144.64/27
157.55.144.96/27
157.55.145.192/27
157.55.147.0/27
191.234.8.0/23
65.55.22.32/27
157.56.48.0/27
191.232.0.0/23
94.245.113.160/27
157.55.43.32/27
157.55.46.128/27
157.55.232.0/27
157.55.235.64/27
157.55.229.32/27
157.55.229.96/27
157.55.229.0/27
157.55.229.64/27
134.170.206.0/23
134.170.214.0/23
191.234.14.0/23
191.234.148.0/23
134.170.210.0/23
134.170.202.0/23
70.37.151.64/27
191.234.144.0/23
111.221.64.160/27
111.221.67.0/27
111.221.67.32/27
111.221.67.64/27
111.221.67.96/27
191.234.150.0/23
191.234.76.0/23
111.221.20.128/25
111.221.17.160/27
111.221.22.192/27
111.221.22.32/27
42.159.162.0/27
10.41.222.0/24
42.159.166.0/23
191.234.10.0/23
157.56.80.128/27
157.56.81.192/27
157.56.81.224/27
157.55.152.128/27
157.55.152.160/27
157.55.152.192/27
157.55.152.224/27
157.55.153.0/27
157.55.153.64/27
157.55.153.96/27
157.55.154.64/27
157.55.103.0/27
65.52.45.0/24
2A01:111:F402:8001::/64
2A01:111:F402:8002::/64
2A01:111:F402:8003::/64
2A01:111:F402:8004::/64
2A01:111:F402:8005::/64
2A01:111:F402:8006::/64
2A01:111:F402:8007::/64
2A01:111:F406:8000::/64
2A01:111:F406:8001::/64
2a01:111:f402:8802::/64
2a01:111:f402:8801::/64
2a01:111:f402:8800::/64
2A01:111:F402:C00::/64
2A01:111:F402:C01::/64
2a01:111:f402::/64
2a01:111:f402:1::/64
2a01:111:f402:400::/64
2a01:111:f402:1801::/64
2a01:111:f402:1802::/64
2a01:111:f402:1803::/64
2a01:111:f402:1804::/64
2a01:111:f402:1805::/64
2A01:111:F402:1806::/64
2A01:111:F402:1807::/64
2a01:111:f402:1808::/64
2a01:111:f402:1809::/64
2a01:111:f402:180a::/64
2a01:111:f402:180b::/64
2a01:111:f402:180c::/64
2a01:111:f402:1000::/64
2a01:111:f402:1001::/64
2a01:111:f402:1c00::/64
2a01:111:f402:9400::/64
2a01:111:f402:9401::/64
2a01:111:f402:9402::/64
2a01:111:f402:9403::/64
2a01:111:f402:9404::/64
2a01:111:f402:9405::/64
2a01:111:f402:9406::/64
2a01:111:f402:9407::/64
2a01:111:f402:800::/64
2a01:111:f402:940c::/64
2a01:111:f402:940d::/64
2a01:111:f402:940b::/64
2a01:111:f402:2403::/64
2a01:111:f402:2401::/64
2a01:111:f402:2400::/64
2a01:111:f402:a006::/64
2a01:111:f402:a000::/64
2a01:111:f402:a001::/64
2a01:111:f402:a002::/64
2A01:111:F402:A003::/64
2a01:111:f402:a004::/64
2a01:111:f402:b000::/64
2a01:111:f402:a805::/64
2a01:111:f402:a800::/64
2a01:111:f402:a801::/64
2A01:111:F402:A802::/64
2a01:111:f402:a803::/64
2a01:111:f402:3400::/64
2a01:111:f402:3402::/64
2a01:111:f402:3403::/64
2a01:111:f402:3404::/64
2a01:111:f402:3405::/64
2a01:111:f402:3406::/64
2a01:111:f402:3407::/64
2a01:111:f402:3408::/64
2a01:111:f402:3409::/64
2a01:111:f402:340a::/64
2a01:111:f402:340b::/64
2a01:111:f402:340c::/64
2801:80:1d0:1400::/64
*.sharepoint.com
*.sharepointonline.com

Microsoft has provided more information on URLs and IP address ranges by Office 365.

Reference :
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/sharepoint-online-urls-and-ip-addresses-HA102772748.aspx

Comments

Popular posts from this blog

GPT-5.2 Lands in Microsoft 365 Copilot: Smarter Reasoning for Workflows

 Today Microsoft announced that GPT-5.2 is now available in Microsoft 365 Copilot and Copilot Studio , bringing two tuned variants: GPT-5.2 Thinking for deep reasoning and strategic work, and GPT-5.2 Instant for fast writing, translation, and skill-building. In Copilot, the model connects to Work IQ to surface insights across your meetings, emails, and documents—helping you turn scattered information into actionable plans. If you use Copilot Chat or Copilot Studio, you can pick GPT-5.2 from the model selector and try prompts like asking for strategic takeaways from a meeting, building comparative tables of market leaders, or preparing focused talking points for upcoming conversations. Microsoft emphasizes model choice , so teams can select the model that best fits the task while keeping security, compliance, and privacy controls in place. Rollout starts today 11-Dec-2025 for users with a Microsoft 365 Copilot license and will expand over the coming weeks; Microsoft 365 Premium...

Why MFA Matters in Microsoft 365 (and How to Enforce It the Right Way)

If you’re still relying on passwords to protect Microsoft 365, you’re leaving a critical gap in your security. A single phished credential can be enough to access email, files, chats, and sensitive business data. Multi-Factor Authentication (MFA) adds a second verification step—such as an Authenticator prompt, a one-time code, or a security key—so a password alone can’t grant access. As a Microsoft 365 administrator and technology enthusiast, I’ve seen firsthand how implementing MFA dramatically reduces account takeover risk and strengthens organisational security. Who this is for This guide is aimed at Microsoft 365 administrators, IT teams, and business leaders looking for practical steps to bolster tenant security with consistent MFA enforcement. Whether you’re managing a small business or a larger enterprise, the principles here apply to everyone seeking to protect critical business data. The goal: require MFA for interactive sign-ins Enforcing MFA for all interactive use...

6 ways to check SharePoint Usage reports

Introduction SharePoint administrators always want to know which user is accessing any site or site collection extensively and which user has access to the site but not using it. The other site details required are related to traffic, access, edit, etc. The user's behavior changes as per the nature of the site and their working department like project team site, department site, and managerial workspace. Fortunately, Microsoft 365 has given multiple methods to generate or view various reports related to SharePoint usage. We will check all the methods one by one and see how they provide the required results. Several options are available at different parts in SharePoint Site or Admin Center where the Administrator can check status or create reports. Method-1. Check Site Usage in Site Contents Page. The Site contents page shows the analytics data like their unique visitors, total site visits, average time spent by the user, etc. The report can be generated for multiple days like 7, 3...