Connecting to SAP HANA server on Cloud using PHP

To get the server name of SAP HANA server, you need to check the virtual machine (VM) list.

You can find this list under Virtual machine details of your corresponding HANA SPS5 server’s External Address property.

Usually, the port number is 30015.

For the problem that you are facing regarding the connection set up, you can refer below link for more details.