Hi all,
I've a straightforward custom connector that calls my on-prem API and validates if a username and password match in an on-prem SQL database.
When I test it using the "Swagger Editor" in the Custom Connector page it works fine, it returns a status code of 200 and the appropriate response body.
But if I try to test it through the final stage of Custom Connector screen, or try using it in a Power Automate Flow, it doesn't work.
I'm not sure why it's working fine when I test with the Swagger Editor and on Postman, but not when I try use the Custom Connector itself?
I get the following error messages:

I've extracted the main content from the error message:
"
"message": "Received error payload from gateway service with ID 2008707:
HttpRequestException: An error occurred while sending the request.
System.Net.WebException: Unable to connect to the remote server
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50469
"
Any help or advice would be greatly appreciated!
Thanks,
Peter