AAD connect behind a proxy

If you are using an outbound proxy for connecting to the Internet, the following setting in the C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config file must be added for the installation wizard and Azure AD Connect sync to be able to connect to the Internet and Azure AD. This text must be entered at the bottom of the file but before the closing configuration tag. In this code, represents the actual proxy IP address or host name and PROXYPORT represents the port the proxy server is listening.