Forside › Forum › Developer discussions › Error communicating with server
- This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by
rebecca.
-
AuthorPosts
-
26. August 2015 at 7:53 #3906
rebecca
ParticipantHi,We have tried to install the OpenTele-client-android .apk file on our phone. We have started the tomcat7 server which is running on port :8080 and the OpenTele-server which is running on the localhost port :8090. No matter which password and username we enter, the error "Error communicating with server" appears. We have tried a real one and a dummy one. We have tried to login with admin/admin and change the server address, but the same error still occurs. Should we change the server address somewhere in the code or? I have tried to change it in the pom.xml file inside the questionnaire.mainapp, but this doesn't help me. How does the phone know the server address it should connect to, is it according to the server address inserted in the admin user. Thanks for your time. 🙂/Rebecca
26. August 2015 at 15:43 #3931mikek
ParticipantHi,When you say you started the opentele-server on port 8090, do you mean that you started it directly from the command line, or did you generate a war file that you added to tomcat?In either case a way to test the server setup is trying to access the server from a browser, I would first try it from the same machine as the server is installed on, when you have verified that the URL is correct, then try it from a browser on the mobile device - just to give an indication if the issue is with the client, the server or with routing between the Android device and the server.The opentele-server is the clinician server, a good login/password combination for the clinician interface is helleandersen/helleandersen1.If you can't login with admin/admin in the Android app, then it could be because you are using the html5 android app, instead of the native android app. The admin/admin login is for the native android app.(There are three ways to access the citizen interface, through a browser (the html5 interface), through the android html app, and through the native android app.)For reference you can see how (or use, depending on your needs) the servers look on the following URL'shttp://opentele-citizen.4s-online.dk/ - The server the native Android app needs to connect tohttp://opentele-html.4s-online.dk/ - The html5 interface, that you can use directly from a browser, and from the html android clienthttp://opentele-server.4s-online.dk/ - The clinician interfaceI hope the above helps.^__^Mike
26. August 2015 at 19:37 #3932rebecca
ParticipantHi again, Thanks it works. The problem was that I havn't started the citizen-server but instead the clinical-server. 🙂/ Rebeccca
-
AuthorPosts
- You must be logged in to reply to this topic.