cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1.2 Native android app unable to connect to RelayServer

Former Member
0 Kudos

Hi all,I am  unable to connect to RelayServer from Native android app in SUP 2.1.2 ,I have set RBS and MBS in Unwired Server,and my Connection Properties are also correct .But it gives Connection Timed Out

 

INSIDE filenameDB.java 

SCC

Error

Follwed The Steps Correctly But Still Gives The Error.Please Give Some Suggestion.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Just check whether port 80 is opened from the network you are trying, apart from that I dont see any thing which you are doing wrong over here

Former Member
0 Kudos

Srinivas,

I m testing it through android device. How can i check the port 80 is open or not? But SCC is able to connect to relay server as outbound enabler is running. Any idea?

Regards,

Senthil.

Former Member
0 Kudos

Hi Senthil,

If you are using open internet, through device then it must work, if you are using your organization Wi-Fi then you might have to open the port 80 through your network team.

Regards,

Srinivas Divakarla

Former Member
0 Kudos

Hi Srinivas,

I m using open internet.:(

I suspect the user registration part. Here are the details..


  private static String USERNAME = "supAdmin";
  private static String PASSWORD = "*******";
private static String HOST = "relayserver.sybase.com";
      private static int PORT = 80;

  private static int PORT_SYNC = 80;
  private static String activationCode ="123";

ConnectionProperties connProps = app.getConnectionProperties();     

                    connProps.setServerName(HOST);

                    connProps.setPortNumber(PORT);              

                 connProps.setActivationCode("123");

      connProps.setFarmId("chaitanya.MeServerMBS");

                    connProps.setNetworkProtocol("http");

                    connProps.setUrlSuffix("/ias_relay_server/client/rs_client.dll");

       

                    LoginCredentials loginCredentials = new LoginCredentials(USERNAME, PASSWORD);

                    connProps.setLoginCredentials(loginCredentials);

And in SCC user registration:-

user ;- supAdmin

Template:- Default

Server name:- relayserver.sybase.com

port:- 80

Farm Id:- chaitanya.MeServerMBS

security configuration:- admin

specify activation code:- 123

Is this a correct information?

Thanks a lot for your support.

Regards,

Senthil.

Former Member
0 Kudos

This seems to be correct, are you able to register the application ? you need to do that only once, if it is already registerd.

Apart from that, before setting the connection properties, are you ******DB.initialize(); ?

Former Member
0 Kudos

if use the ip of SUP server as host and run in emulator, the application gets registered but not as a registered user. It creates a new user in SCC application connections. Is it proper?

We are not calling ***DB.initialize() before setting connection properties.

Former Member
0 Kudos

Now i m getting the problem during synchronization....Below is the error....

com.sybase.mobile.ApplicatinoRuntimeException:- Application settings are not available.

Former Member
0 Kudos

...Finally, I could make it...

The problem was that relay server works in device not in simulator (might need some more configuration to access Internet and etc.,). For device, we have used the Server host as serever IP.

Thanks Srinivas and Every one.

Senthil.

Former Member
0 Kudos

hi

what is the configurations to might it work?

i have the same problem and i could not be it works, the configuration of my aplications its the same like SenthilKumar

Thanks Srinivas and Every one

Answers (0)