Bug? B4A-Bridge Connection Issue


Well-Known Member
Licensed User
Longtime User

I am using B4A Version 3.00 with the B4A Bridge version 2.09.
(Running the IDE on Windows 8.1 Pro)

Most times if not every time when I use my Sony Xperia Z (Model C6603, Running Android 4.2.2) using the Wi-Fi mode, not Bluetooth I get an error when trying to connect.

When using it on my other phone (Samsung Galaxy S2) and my Nexus7 it seems to connect first go and don't get this issue.

Here is what I have done to connect:

1. In the IDE clicked on Tools > B4A Bridge > Connect Wireless > New IP
2. Open the B4A-Bridge App
3. Press the Start-Wireless button
4. In the IDE, typed in the IP address on my phone (the one that it says in the IDE)
5. Clicked on Connect in the IDE
5. Now a few seconds (approx. 3-5 seconds later) I get the following error come up:


Notice it says it can't ping the IP address, but in in the command prompt I can Ping the IP address and I get a reply.

I then pressed 'Yes' and sometimes it will connect (2/10 times it will connect)
Other times I will get the following error message:


Most times I need to close the B4A-Bridge and re-open it again and click on Start-Wireless and sometimes that will fix the issue, where other times I need to close the IDE and re-open it again and it will connect first go. (most times)

Is this a bug or is it something I am doing wrong or just the way it is?
Last edited:


Active Member
Licensed User
Longtime User
I have similar issues since upgrading to 3.0. usualy after i click yes or retry it finally connects


Licensed User
Longtime User
I am runnig 3.0 on WIN8.1 and everything works without a problem. Please check your firewall (this may prevent connecting).

Maybe your sequence is wrong ;-)

1. First Start the b4a-bridge on you mobile and press "Start - Wireless"

after that

3. In the IDE Tools > B4A Bridge > Connect Wireless > New IP (or click on the shown IP if it's the same as you mobile shows)

The b4a-bridge should show "connected" within less than a second.


Well-Known Member
Licensed User
Longtime User
I think I know what might be going on..
On my Sony Xperia Z it has a battery saving app that will make the phones battery last longer (which is a default app on my device, which must say works great)

When the device is running on battery only (no mains power) it activates this power saving mode turning off my Wi-Fi etc.
When I wake up the phone, it will turn the Wi-Fi back on again. Even knowing it says I am connected to the Wi-Fi by the icon in the status bar up the top, it is still looking for a IP address from my router.

Looks like that even knowing the B4A-Bridge has given me a IP address, I think the device somehow remembers the last IP the router gave the device and shows that IP in the B4A-Bridge even before it fully connects to the router.

If I then try and connect the IDE says it can't ping my device as it's still connecting to the network.
If I then manually try and ping the IP sometimes it can't ping it and a few moments later it starts pinging as the device would of finally got the IP from the router even knowing it has given the same IP address.

If I am quick enough and open the settings app and view the network settings I found that the Wi-Fi is connect but it comes up saying it is trying to get a IP address, so that is basically how I knew that the device wasn't fully connected to the router/network.

Now when I close the app and IDE but leave the screen on so it doesn't activate the power saving mode on my phone and I re-open the IDE and app and connect again in the IDE it will connect first go.

This is most likely why my Samsung Galaxy S2 and Nexus7 are not getting these issues as it doesn't have this power saving feature enabled on them.

also have the same problem with 3.0, I hope this can be resolved...
Weird thing is it has only happened since version 3.00 as well but maybe I had the screen turned on for a longer time before I tried to connect using the older versions of the IDE and that is why it used to connect first go.

Maybe try this, before opening anything check and make sure your device has a IP address from the settings app then try and connect using the IDE and B4A-Bridge.