This article describes an issue with ADFS where the ADFS MEX endpoint and the CRM Sandbox are both configured to use port 808. The article describes how to change the port.
This article https://technet.microsoft.com/en-us/library/hh699823.aspx describes the ports used by CRM and supporting software.