Hello. My name is***** to JustAnswer. I'm reviewing your question now, and will post back with your reply momentarily.
To set up rules for your email for IP, you can follow the document below:
This one is for 365 specifically for Block or Allow IP Address in Connection Filtering:
let me know if you have further questions and we will proceed.
Please rate the 5 stars at the top of the page to close out this question as it is the only way i amcredited for the work done with clients. Or, reply to continue if further troubleshooting is necessary.~Franklin