on 10-11-2013 8:38 AM
Hi,
I am able to fetch data from the backend using the Netweaver gateway services via SUP into my Android application running on emulator(which is in internal network).
When I am trying to run the application from outside the network, I am getting the Error 552: 'Transport endpoint is not connected'.
ERROR/ODP(313): Y8xN5198 (com.sybase.mobile.lib.client.SUPServerRmiCalls:makeRequest:386) Exception while making request
ERROR/ODP(313): Error: 552 Message: 'Transport endpoint is not connected'
ERROR/ODP(313): at com.sybase.mo.MoObject.ConvertTmExceptionToMoException(MoObject.java:889)
ERROR/ODP(313): at com.sybase.mo.MoObject.execute(MoObject.java:704)
ERROR/ODP(313): at com.sybase.mobile.lib.client.SUPServerRmiCalls.makeRequest(SUPServerRmiCalls.java:214)
ERROR/ODP(313): at com.sybase.mobile.lib.client.SUPServerRmiCalls.makeRequest(SUPServerRmiCalls.java:377)
ERROR/ODP(313): at com.sybase.mobile.lib.client.IMOConnectionFactory.makeRequest(IMOConnectionFactory.java:310)
ERROR/ODP(313): at com.sybase.mobile.lib.client.IMOConnectionHandler.performRequest(IMOConnectionHandler.java:353)
ERROR/ODP(313): at com.sybase.mobile.lib.client.IMOConnectionHandler.makeHttpRequest(IMOConnectionHandler.java:186)
ERROR/ODP(313): at com.sap.mobile.lib.sdmconnectivity.AbstractConnectionHandler.processRequestType(AbstractConnectionHandler.java:170)
ERROR/ODP(313): at com.sap.mobile.lib.sdmconnectivity.AbstractConnectionHandler.processRequestsFromQueue(AbstractConnectionHandler.java:130)
ERROR/ODP(313): at com.sybase.mobile.lib.client.IMOConnectionHandler.run(IMOConnectionHandler.java:103)
Can anyone help me in resolving the issue.
Thanks in advance.
Regards,
Shyam
In order to access SUP from public network you need to use the public IP of the SUP server instead of private IP (a relay server is recommended instead of exposing ports to the public ) . Are you using the public IP when connecting from public network ? You need to open the port 5001 to the public also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much Midhun, Jitendra and Chetan.
I am able to connect and fetch data onto my device now.
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Yes, I am using public IP when connecting from the public network. But i have to check whether the port 5001 is opened to the public.
Hi Jitendra,
I am trying to connect to SUP server directly. Our SUP server is in DMZ zone. We are not using relay server.
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in addition to what Chetan has mentioned:
by default
5001 port is used to register the user from device.
2000 port is used to connect SUP server (from workspace)
Rgrds,
Jitendra
Hi Jitendra,
But we are not connecting to SUP server from workspace.
We are developing ODATA applications. We have created application endpoint in SCC and using that we consumed the gateway services data into our application.
In ODATA application development also, do we need to open port 2000 for external access.
Shyam
Hi Midhun,
We have asked our network team to open the 5001 port to public. Including 5001, we have asked our network team to open 8000 and 8001 ports also.
Do we need to open any ports other than 5001, 8000 and 8001 in order to connect to SUP server from external network in OData based applications.
Shyam
I don't understand why you are opening 8000 and 8001 here. No other ports are not required to be opened. Understand one thing that the ports you are mentioning while writing the device code should be accessible. So open these ports always. In your case you must have mentioned 5001 in the device device code for communition. So open that.
Hi Shyam,
How r you trying yo access the app from outside ?Are you using relay server ?
Rgrds,
Jitendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.