Hi Suarabh,
If you are using relay server you have to pass other details of the relay server, the format is clientConnection.setConnectionProfile(true,<Host>,<port>, <Relay server URL template>, <Relay server Farm Id>);
You can establish connection from a REST client to make sure relay server is configured correctly with SMP. This blog has an example on it : How-to-Guide for Reverse Proxy and Load Balancing in SAP Mobile Platform 3.x
Regards, Midhun
SAP Technology RIG