I was able to look into your issue and will post my findings below.
Event ID: 12015
Description: The Connector failed to establish connection with the service
Cause: This failure is caused when the required URL access outbound from the connector is not allowed.
Troubleshooting steps:
- Based off your post, it looks like you confirmed the required ports and URLs weren't blocked. However, would you be able to re-confirm/ensure that all the required ports and service URL's are open, outbound from the connector. Ports, URLs, and pre-requisites.
-Outbound ports 80 and 443 from the connector service to the App Proxy Service need to be open.
-Access to the following URLs needs to be allowed. For the complete list please reference the above link:
Msappproxy.net
Servicebus.windows.net
Login.windows.net
Login.microsoftonline.com
mscrl.microsoft.com:80
crl.microsoft.com:80
ocsp.msocsp.com:80
www.microsoft.com:80 - If you're using an on-premises proxy, ensure it's configured correctly - https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/application-proxy
- If your configuration is correct you can collect a network trace while starting the connector service, to review and see what URL or Port the access is failing at.
-Stop the Microsoft Azure App Proxy Connector Service
-From an Admin CMD run: netsh trace start capture=yes
-Run the following command: ipconfig /flushdns
-Start the Microsoft Azure App Proxy Connector Service
-From an Admin CMD run: netsh trace stop