m365

Microsoft 365 publishes 93 IP ranges.

Short answer

Microsoft 365’s endpoints web service lists the addresses used by Exchange Online, SharePoint and OneDrive, Teams (Skype) and common services, with a version number that changes when the list does.

IPv4 prefixes34
IPv6 prefixes59
Sub-lists4
Provider’s file dateversion 2026103000
Fetched by peekip6 Nov 2026
StatusFetched OK

What it’s for

Use it to let Microsoft 365 traffic bypass proxies or to allow it through a firewall, as Microsoft recommends.

Sub-lists

Sub-lists with a written explanation are described on their own page.

Prefixes

PrefixRegion / locationService
104.146.128.0/17—SharePoint Online and OneDrive for Business
104.47.0.0/17—Exchange Online
13.107.128.0/22—Exchange Online
13.107.136.0/22—SharePoint Online and OneDrive for Business
13.107.140.6/32—Microsoft 365 Common and Office Online
13.107.18.10/31—Exchange Online
13.107.18.15/32—Microsoft 365 Common and Office Online
13.107.6.152/31—Exchange Online
13.107.6.171/32—Microsoft 365 Common and Office Online
13.107.6.192/32—Microsoft 365 Common and Office Online
13.107.9.192/32—Microsoft 365 Common and Office Online
131.253.33.215/32—Exchange Online
132.245.0.0/16—Exchange Online
150.171.32.0/22—Exchange Online
150.171.40.0/22—SharePoint Online and OneDrive for Business
20.190.128.0/18—Microsoft 365 Common and Office Online
20.20.32.0/19—Microsoft 365 Common and Office Online
20.231.128.0/19—Microsoft 365 Common and Office Online
204.79.197.215/32—Exchange Online
23.103.160.0/20—Exchange Online
40.104.0.0/15—Exchange Online
40.107.0.0/16—Exchange Online
40.108.128.0/17—SharePoint Online and OneDrive for Business
40.126.0.0/18—Microsoft 365 Common and Office Online
40.92.0.0/15—Exchange Online
40.96.0.0/13—Exchange Online
52.100.0.0/14—Exchange Online
52.104.0.0/14—SharePoint Online and OneDrive for Business
52.108.0.0/14—Microsoft 365 Common and Office Online
52.112.0.0/14—Microsoft Teams
52.122.0.0/15—Microsoft Teams
52.238.78.88/32—Exchange Online
52.244.37.168/32—Microsoft 365 Common and Office Online
52.96.0.0/14—Exchange Online
2603:1006:1400::/40—Microsoft 365 Common and Office Online
2603:1006:2000::/48—Microsoft 365 Common and Office Online
2603:1006::/40—Exchange Online
2603:1007:200::/48—Microsoft 365 Common and Office Online
2603:1016:1400::/48—Microsoft 365 Common and Office Online
2603:1016:2400::/40—Microsoft 365 Common and Office Online
2603:1016::/36—Exchange Online
2603:1017::/48—Microsoft 365 Common and Office Online
2603:1026:2400::/40—Microsoft 365 Common and Office Online
2603:1026:3000::/48—Microsoft 365 Common and Office Online
2603:1026::/36—Exchange Online
2603:1027:1::/48—Microsoft 365 Common and Office Online
2603:1027::/48—Microsoft Teams
2603:1036:2400::/40—Microsoft 365 Common and Office Online
2603:1036:3000::/48—Microsoft 365 Common and Office Online
2603:1036::/36—Exchange Online
Showing 50 of 93 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 104.47.0.0/17;
allow 13.107.128.0/22;
allow 13.107.136.0/22;
allow 13.107.140.6/32;
deny all;
iptables (first 5 prefixes)
iptables -A INPUT -s 104.146.128.0/17 -j ACCEPT
iptables -A INPUT -s 104.47.0.0/17 -j ACCEPT
iptables -A INPUT -s 13.107.128.0/22 -j ACCEPT
iptables -A INPUT -s 13.107.136.0/22 -j ACCEPT
iptables -A INPUT -s 13.107.140.6/32 -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 6 Nov 2026
  2. Microsoft 365 documentation