
Make use of the Test-NetConnection cmdlet. If it shows the TCP Test Succeeded value as True, you’re good to go. Test port 25 against the Exchange Server this is for outgoing connections. Test both ports 443 and 25 against the public IP this is for incoming connections. PS C:\> (Invoke-WebRequest -Uri "").Content After that, run PowerShell as administrator and run the below command. If you followed the article configure external DNS for Exchange, you already have the public IP of your Exchange Server.ĭo you want to get the public IP with PowerShell? Sign in to Exchange Server. Verify the above three firewall rules after configuring them. In our example, the Exchange Server IP address is 192.168.1.52.Īn architecture view of the Exchange namespace is shown below in the topology. It will enable the Exchange server to communicate with other mail servers outside your organization. It’s important to open the following three firewall ports for mail flow and clients. Exchange firewall ports for clients and services.
