Hi,
Recently I moved all my work related software to a Windows cloud VPS. I connect to my cloud vps by a chromebook. All programs work very well in the cloud. I only have some troubles with debugging to a real device in B4A. However I'm traveling at daytime and use my vps from different places (read different ip adresses), I do use B4A most of the time from my home adress with static ip.
Basicly I will connect for debugging from my cloud VPS to my Android device in localnetwork.
That makes me think portforwarding could help me.
Simple plan: B4A ide connect from cloud VPS to my home modem. The modem routes the data to the fixed ip of my Android Device. Done!
Tested:
The connection between IDE and B4A Bridge works! I can compile the app from my VPS over the internet to my local running Android Device. The APK installer pops up and the app can be used when compiled in release mode.
But....
When I use debug mode the app will be installed succesfull, But at start it tries to connect with the ide. After a few seconds the app crashed / is closed.
I think the communication only works from ide to app and not from app to ide.
Maybe there is an other port for backwards communication.
My IP situation is:
Is there a way to solve this, or is it possible for Erel and his team to create some function in the ide for debugging on device over the internet.
Best regards,
Marc
Recently I moved all my work related software to a Windows cloud VPS. I connect to my cloud vps by a chromebook. All programs work very well in the cloud. I only have some troubles with debugging to a real device in B4A. However I'm traveling at daytime and use my vps from different places (read different ip adresses), I do use B4A most of the time from my home adress with static ip.
Basicly I will connect for debugging from my cloud VPS to my Android device in localnetwork.
That makes me think portforwarding could help me.
Simple plan: B4A ide connect from cloud VPS to my home modem. The modem routes the data to the fixed ip of my Android Device. Done!
Tested:
The connection between IDE and B4A Bridge works! I can compile the app from my VPS over the internet to my local running Android Device. The APK installer pops up and the app can be used when compiled in release mode.
But....
When I use debug mode the app will be installed succesfull, But at start it tries to connect with the ide. After a few seconds the app crashed / is closed.
I think the communication only works from ide to app and not from app to ide.
Maybe there is an other port for backwards communication.
My IP situation is:
- Home External IP: 77.161.xxx.xxx
- Home Internal range 192.168.2.xxx
- Cloud VPS: 141.138.xxx.xxx
- I installed B4A on my cloud vps.
- I gave my testing device a fixed ip 192.168.2.9 (set in modem)
- I openend my modem/router settingspage on NAT/Portforwarding and set portforwarding to local ip 192.168.2.9 at port 6789, (6906 and 8192 maybe not neccessary)
- I connect the IDE to B4a Bridge on 77.161.xxx.xxx (home ip)
- I start my Adnroid tablet for listning in my local network
The connection over NAT with my cloud VPS is made. - Installing APK works.
- Running app stops in debug mode
Is there a way to solve this, or is it possible for Erel and his team to create some function in the ide for debugging on device over the internet.
Best regards,
Marc