Android Tutorial B4A-Bridge over wifi without a local network

Erel

Administrator
Staff member
Licensed User
Starting from B4A v5.0, B4A-Bridge over Bluetooth is no longer available. You can use B4A-Bridge over wifi or USB debug mode to connect the IDE to a device.

By creating a mobile hotspot you can easily connect to a device with B4A-Bridge even if there is no local network.

The steps are:
1. Start a mobile hotspot on the device.
2. Connect the computer to the mobile hotspot.
3. Start B4A-Bridge. It will show a message saying: "Not connected to wireless network". Ignore it.
4. Set the following IP address in the IDE: 192.168.43.1 (this is the default ip address of devices serving as a mobile hotspot).

upload_2015-6-15_9-27-9.png


Notes


- This will work even if there is no sim card in the device.
- If there is a sim card then it is recommended to turn airplane mode on as otherwise the computer will use the device mobile network provider to connect to the internet. This may result in large bandwidth consumption.
 

Troberg

Well-Known Member
Licensed User
This assumes that you can select which network the computer connects to, and that you can disconnect from the network it is currently connected to (which isn't accessible by the "foreign device" phone).
 

Dave O

Active Member
Licensed User
If there is a sim card then it is recommended to turn airplane mode on as otherwise the computer will use the device mobile network provider to connect to the internet. This may result in large bandwidth consumption.
I think you mean "turn off mobile data", because Airplane Mode turns off mobile AND WiFi, which would cut off the PC.
 

zsugar

Member
Licensed User
My device is a Nexus 5, so I suppose IP address is 192.168.43.1. I noticed that when I enable Hot spot WIFI is turn-off automatically.
Is possible a problem ?

Thanks
 

timwil

Active Member
Licensed User
WiFi is turned off automatically because the WiFi on the phone is now being used to serve your PC
 

KnipsFips

New Member
Licensed User
Hi,

I just upgraded to B4a V5 and cannot connect to B4A-Bridge anymore.
It used to pop up a message that it couldn't ping my android device but nevertheless it connected fine.
After the upgrade to B4A V5 it still says that it cannot ping the device but now it is not connecting anymore.

I am running V2.09 and wanted to download the apk from your given link but the link points to V2.09.
Could you please update your link to B4A-Bridge.apk to the current version (2.12)?

thanks
 
Top