Wish B4A-Bridge - Ping fails but connection goes through

daemon

Active Member
Licensed User
Longtime User
Using B4A-Bridge 2.09 from play store (even Plus version), every time I press F2 to connect (WiFi), it gives me a message that ping failed (timed out), IP address may be incorrect.

Ping from command-line also fails.

However, connection goes through if I continue.

My phone has static IP, so no chances of it being wrong.

Is there any option to skip ping and directly establish connection?

That will help save some time (ping timeout) and will remove annoying message.

pingfailed.png
 

daemon

Active Member
Licensed User
Longtime User
Yes, this happens in IDE.

Is ping necessary?
Can't the IDE directly connect?

Sure, Release builds don't require it or debugger.
 

klarsys

Active Member
Licensed User
Longtime User
I see this issue with B4A v4.30 as well.
Is it fixed? or is there any option to disable ping?
 

klarsys

Active Member
Licensed User
Longtime User
Ping fails even if the device is available, it connects if I continue after ping failure.

As per earlier discussions in this thread:
The .Net ping implementation fails for some reason
It is not required. It is a check to make sure that the ip is correct. It can be made optional in the future.

I think ping is unnecessary since connection will anyway fail if IP is incorrect. I can't see any gain by pinging.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I can't see any gain by pinging
The purpose of the ping step (which was added after B4A-Bridge was first released) is to help developers troubleshoot connections problems. With this feature developers can know whether the problem is related to the network itself or to B4A-Bridge not running properly.

In most cases the ping works correctly and is therefore useful.
 

klarsys

Active Member
Licensed User
Longtime User
Got it.

My request to make it optional is still ON.
In my case, it fails every time and it is very annoying to wait for it to show error and then continue.

Thanks!
 
Top