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

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))

 

Abhishek_Hazra
Active Contributor
0 Kudos
Did you find a solution to this issue? I am facing the same, could you please share if you found a work around?
Abhishek_Hazra
Active Contributor
0 Kudos
Did you find a solution to this issue? I am facing the same, could you please share if you found a work around? Thanks in advance. For me it works in a laptop connected to work network, but I get same error as yours while I try to access the same from private network.

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=******'