Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
martin.bonin  
#1 Posted : Sunday, February 5, 2017 8:14:24 PM(UTC)
martin.bonin

Rank: Newbie

Groups: Registered
Joined: 1/20/2017(UTC)
Posts: 5
Canada
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...
dude  
#2 Posted : Tuesday, February 7, 2017 12:26:54 PM(UTC)
dude

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.htm

the 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.)
thanks 1 user thanked dude for this useful post.
martin.bonin on 2/7/2017(UTC)
martin.bonin  
#3 Posted : Tuesday, February 7, 2017 6:31:38 PM(UTC)
martin.bonin

Rank: Newbie

Groups: Registered
Joined: 1/20/2017(UTC)
Posts: 5
Canada
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?
dude  
#4 Posted : Wednesday, February 8, 2017 10:44:51 AM(UTC)
dude

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.
bbv  
#5 Posted : Wednesday, February 8, 2017 3:11:06 PM(UTC)
bbv

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
Users browsing this topic
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.