How to Fix IP Addresses Not Saving in Exchange Online Connection Filter
Question details
Users need to resolve an issue where IP addresses fail to save to the Connection Filter Allow List in the Exchange admin center.

- Product
- Exchange Online
- Device & OS
- not provided
- Scenario
- Attempting to whitelist an IP address in the Microsoft 365 Defender or Exchange admin interface.
- Observed behavior
- IP addresses entered in the web interface disappear immediately after saving, meaning the security policy does not update correctly.
Ensure you have the Exchange Administrator role assigned to your account and that you have the latest Exchange Online PowerShell module installed on your computer.
Update the Connection Filter Policy via Exchange Online PowerShell
Bypassing the web interface and using PowerShell directly ensures the policy changes are forcefully applied to your Exchange tenant.
When the Microsoft 365 Defender or Exchange admin interface fails to commit changes due to synchronization issues, PowerShell offers a direct and reliable way to manage connection filters.
Ensure you use modern authentication with the current Exchange Online module. Legacy Basic Authentication commands are deprecated and may fail.
Launch Windows PowerShell on your machine as an Administrator.
Run the command 'Connect-ExchangeOnline -UserPrincipalName YOUR_UPN' to authenticate with your administrator credentials using modern authentication.
Use the supported cmdlet for your tenant to add the IP address. For example, use 'Set-HostedConnectionFilterPolicy' to modify your specific policy's allowed IP addresses.
Confirm that your IP address was successfully saved by running the 'Get-HostedConnectionFilterPolicy' command and checking the allow list output.

Document Your IT Configurations with WPS Office
While resolving Exchange Online security policy errors, it is essential to keep track of your PowerShell scripts, tenant configurations, and troubleshooting steps. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, allowing you to seamlessly manage your IT documentation.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button.
- 2. Install the Software: Run the setup file and follow the straightforward on-screen instructions.
- 3. Create Documentation: Open WPS Writer to quickly draft and save your IT administrative guides and PowerShell reference documents.

Frequently Asked Questions
Why do IP addresses disappear from the Exchange admin center after saving?
This usually happens due to web interface synchronization delays, browser caching issues, or the user account lacking the necessary Exchange Administrator permissions to commit the policy changes.
Which administrator role is required to modify the connection filter policy?
You must be assigned the Exchange Administrator or Global Administrator role in Microsoft 365 to successfully view and modify connection filter policies.
How can I verify if my IP address was successfully added to the allow list?
You can verify your current configuration by connecting to Exchange Online PowerShell and running the 'Get-HostedConnectionFilterPolicy' cmdlet. This will display the active IP allow list for your tenant.
Should I use Basic Authentication to connect to Exchange Online PowerShell?
No. Microsoft has deprecated Basic Authentication for Exchange Online to improve security. Always use modern authentication methods with the latest Exchange Online PowerShell V2 (EXO V2) or V3 module.




