Rank: Newbie
Groups: Registered
Joined: 1/20/2017(UTC) Posts: 5  Location: Ottawa Thanks: 3 times
|
Hi, I'm new at this and I would need some help to understand how to install my app on my phone. After creating my app, I deployed it to the server using "File, Generate Program Code for AppStore App..." and opened it in Android Studio then I built an APK and then send it to my phone via email. So far so good but after installing it on the phone, when it starts, it is looking for the server and sais : "Error, cannot connect to host 'localhost' (port 8085)." Why does it have to connect to the server ? Can't it be a stand alone app ? Thanks for your help...
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 5/28/2015(UTC) Posts: 6 Location: everywhere
Was thanked: 2 time(s) in 2 post(s)
|
If your compiled App is properly configured under Project settings with Server Access “never”, then it only needs to connect to the MobileTogether server once – on its very first run, and then never again. As described in documentation: http://manual.altova.com..._deploywkflow2server.htmthe actual app logic is deployed to the MobileTogether server and resides there. The App gets a unique key to access this logic on a first run. (It is therefore imperative that you maintain backup copies of your server to ensure that the version of your app deployed to the app store can actually start. After the very first execution it follows the rules set in Project Server Access settings.)
|
 1 user thanked dude for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/20/2017(UTC) Posts: 5  Location: Ottawa Thanks: 3 times
|
Thanks, that helps. I still have issue connecting to the server though. I've used the mobile app of MobileTogether and connect to a new server. I've used these parameters: - Address : localserver or 127.0.0.1 - Port : 8083 or 8085 and it doesn't connect. I know i'm missing something but I can't figure out what. Any thoughts?
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 5/28/2015(UTC) Posts: 6 Location: everywhere
Was thanked: 2 time(s) in 2 post(s)
|
Quote: I still have issue connecting to the server though. I've used the mobile app of MobileTogether and connect to a new server. I've used these parameters: - Address : localserver or 127.0.0.1 - Port : 8083 or 8085 and it doesn't connect. I know i'm missing something but I can't figure out what. Any thoughts?
You have entered localhost / 127.0.0.1 as the address. This makes no sense because this is the i.p. address of your phone. You have to enter the i.p. address of the server on which MobileTogether Server has been installed. If you haven't installed a MobileTogether Server yet, but are using MobileTogether Designer to simulate a server then you have to enter the i.p address of the machine on which MobileTogether Designer is installed.
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 484
Was thanked: 81 time(s) in 81 post(s)
|
127.0.0.1 can only be used for accessing server from within the same computer, which is why it is named localhost
You need to find out the external IP address of your server. Usually "ipconfig" from the command line helps
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.