I hope someone could shed some light on the issue I am having. I created a app which connect to a wifi AP, and then by means of http get a file from the webserver located on the access point. I tried to use a raspi, esp8266, even mikrotik, and getting the same results on all of them, and with 3 different phones (different makes, all android 8). The AP does not have internet. My b4a app would not ping the address of the ap. It would not connect any socket whatsoever. When I disable mobile data on the phone, it works. Now this is all good and well, but here is the strange thing, App with the name PING (apk from the app store, was written in pure java), does not have this problem. So this only happens with my b4a compiled app. It is as if the ping command in shell is trying to resolve the address 192.168.4.1 (the one of the ap) as if it is a named host. In other words, it is as if the app is trying to do a name resolution against the ip address, in stead of just using the ip. That is the one possibility, the other is that the phone is looking for the address on the internet because mobile data is still on. (this option is more plausible). Now this could be because of standard android routing, BUT why is the other app working ?
I have been struggling a week with this, hopefully what I am saying is making some sense to someone, and can point me in the right direction. I am not very strong on Java btw !
Thanks !
I have been struggling a week with this, hopefully what I am saying is making some sense to someone, and can point me in the right direction. I am not very strong on Java btw !
Thanks !