B4J Question B4A-B4J Chat demo works with WiFi only

Beja

Expert
Licensed User
Longtime User
Hi all,
Anyone tried to use mobile data with the J-A chat app?
For me it didn't work.. I disabled the Mobile WiFi, and enabled Mobile Data.. I could brows the net normally but the
chat app didn't work.. it only worked when I enabled the WiFi and connected to my WiFi network (router).
 

Beja

Expert
Licensed User
Longtime User
Upvote 0

Beja

Expert
Licensed User
Longtime User
This is what I mean..

Screenshot_2016-03-18-12-10-40.png
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
As Erel said, unless you set up your router for port forwarding to the machine hosting the server, and check the firewall allows the incoming connection, and you change the http address the app connects to, it's not going to work. Your phone cannot connect to a local network, just by turning on mobile data.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thanks daestrum
But again if you read the problem and see the last photo, I am not using the router or our LAN.. But the mobile data. I even the router WiFi. I am not even at home or in the office but on the road. When I used our WiFi no problem as I mentioned and the app works perfectly.
The question is does the example support mobile data or it must make the connection only through the router or WiFi?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Oh now I know.. Sorry and please never mind
The mobile and router are on different networks.... Duh.
 
Upvote 0
Top