m365 · SharePoint Online and OneDrive for Business

Microsoft 365 uses 10 prefixes for SharePoint Online and OneDrive for Business.

Short answer

SharePoint Online and OneDrive for Business.

IPv4 prefixes5
IPv6 prefixes5
Regions in the first 100—
Fetched by peekip5 Nov 2026

Prefixes

PrefixRegion / locationService
104.146.128.0/17—SharePoint Online and OneDrive for Business
13.107.136.0/22—SharePoint Online and OneDrive for Business
150.171.40.0/22—SharePoint Online and OneDrive for Business
40.108.128.0/17—SharePoint Online and OneDrive for Business
52.104.0.0/14—SharePoint Online and OneDrive for Business
2603:1061:1300::/40—SharePoint Online and OneDrive for Business
2603:1063:6000::/35—SharePoint Online and OneDrive for Business
2620:1ec:8f8::/46—SharePoint Online and OneDrive for Business
2620:1ec:908::/46—SharePoint Online and OneDrive for Business
2a01:111:f402::/48—SharePoint Online and OneDrive for Business
Showing 10 of 10 prefixes All prefixes (CSV)

What changed

No prefixes added or removed since we started tracking this list. Changes appear here the day after the provider publishes them.

Allowlist formats

nginx (first 5 prefixes)
allow 104.146.128.0/17;
allow 13.107.136.0/22;
allow 150.171.40.0/22;
allow 40.108.128.0/17;
allow 52.104.0.0/14;
deny all;
iptables (first 5 prefixes)
iptables -A INPUT -s 104.146.128.0/17 -j ACCEPT
iptables -A INPUT -s 13.107.136.0/22 -j ACCEPT
iptables -A INPUT -s 150.171.40.0/22 -j ACCEPT
iptables -A INPUT -s 40.108.128.0/17 -j ACCEPT
iptables -A INPUT -s 52.104.0.0/14 -j ACCEPT

Generate the full list from the CSV, and refresh it on a schedule: providers add and retire prefixes often.

Sources

  1. Microsoft 365: published IP ranges · checked 5 Nov 2026
  2. Microsoft 365 documentation