cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to HANA Cloud instance throwing Connection failed (RTE:[89013] Socket closed by pe

zafarbiet
Discoverer
0 Kudos
1,154

While connecting to an standard HANA cloud database from the visual studio code Hana explorer, I am getting below error,

[ERROR] The connection to the database failed with reason: Connection failed (RTE:[89013] Socket closed by peer {0.0.0.0:59250 -> 3.215.33.125:443} (0.0.0.0:59250 -> xxxx.hana.prod-us10.hanacloud.ondemand.com:443))

 

Accepted Solutions (0)

Answers (2)

Answers (2)

AlexPJ
Explorer
0 Kudos

Did you allow connections to your SAP HANA Cloud database instance from IPs outside of your BTP region?

See 
https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/sap-hana-database-connectio...
https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/change-allowed-connections-...
https://help.sap.com/docs/hana-cloud/sap-hana-cloud-administration-guide/sap-hana-database-configura... 
"Socket closed by peer" is the typical error message you would get if you tried to connect from an IP that is not on the allowlist.  

Cocquerel
Active Contributor
0 Kudos

If you are connecting from LAN, you may need to specify proxy setting in your connection string:
;proxyHttp=true;proxyHostname=*****;proxyPort=****;proxyUserName=*****;proxyPassword=******'