Android Tutorial B4A-Bridge a new way to connect to your device

Status
Not open for further replies.

moster67

Expert
Licensed User
I also have problems.

I can't find any outgoing calls using "NetStat -a" on my PC. I have disabled FIrewall. ADB with USB works nicely with my device. I tried to launch the log as suggested by you but it's only popolated by some "b". Nothing in log which indicates a problem.

Does B4A Bridge on the device open a specific port? Perhaps it's in use on my device?
 

Erel

Administrator
Staff member
Licensed User
B4A-Bridge listens on port 6789.
Can you 'ping' the device IP?
 

susu

Well-Known Member
Licensed User
I tried with wifi at my home, device still say "My IP: 192.168.16.20" (the same IP I tried at work). Is it strange? I ping this IP and can't reach.

Ps: I run "basic4android -log" and got error from Windows

Basic4android has stopped working

Problem details:
Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: basic4android.exe
Problem Signature 02: 1.3.0.0
Problem Signature 03: 4d6a7b32
Problem Signature 04: mscorlib
Problem Signature 05: 2.0.0.0
Problem Signature 06: 4bebd50b
Problem Signature 07: 344b
Problem Signature 08: 119
Problem Signature 09: System.IO.DirectoryNotFound
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 1033

Read our privacy statement online:
Windows 7 Privacy Statement - Microsoft Windows

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
 

Erel

Administrator
Staff member
Licensed User
I tried with wifi at my home, device still say "My IP: 192.168.16.20" (the same IP I tried at work). Is it strange? I ping this IP and can't reach.
Maybe the real IP is different for some reason?
Check the IP reported in your device network settings.

It seems like some network problem. Your device should respond to the ping request.

About the logs. Create a folder named C:\Temp and it should work. Though I don't think that there will be anything useful there in this case.
 

susu

Well-Known Member
Licensed User
You're right, the "real IP" of my device is 192.168.0.110 and it works. I just don't know why B4A Bridge keep saying that my IP is 192.168.16.20? Maybe it's a bug?
 

Erel

Administrator
Staff member
Licensed User
Are you also connected to a mobile network? Maybe it is returning the mobile network IP.
 

susu

Well-Known Member
Licensed User
No, my laptop and mobile connected to the same wifi network. I also disconnect my mobile from 3G/EDGE.
 

Erel

Administrator
Staff member
Licensed User
It's good that we were able to solve it.
I will investigate this issue.
 

susu

Well-Known Member
Licensed User
Yes, I'm satisfied with B4A Bridge. Hope you will add more functions soon. Thank you :D
 

moster67

Expert
Licensed User
Erel,

Problem resolved. Got error due to a custom ROM. Flashed another one and now it works.

Great tool!
 

wes58

Active Member
Licensed User
B4A-Bridge works fine with Basic4Android but when I try to connect adb from the Command prompt, using: "adb connect 192.168.0.10:6789" I get the status on the PC that adb connected to the device, but then, on the device I get a message that "B4A-Bridge has stopped unexpectedly".
Any solution for that?
 

tremara1

Active Member
Licensed User
awwwesommmme!!

I cant believe the pain banging my head against the emulator was and now what a joy it is to develop......thank you.........
 

Erel

Administrator
Staff member
Licensed User
B4A-Bridge works fine with Basic4Android but when I try to connect adb from the Command prompt, using: "adb connect 192.168.0.10:6789" I get the status on the PC that adb connected to the device, but then, on the device I get a message that "B4A-Bridge has stopped unexpectedly".
Any solution for that?
B4A-Bridge is not supposed to work with ADB.
 

bobsimoneau

Member
Licensed User
I liked it better in version 1.2 where you could start the emulator automatically. I do not see the use for the bridge for me. I dislike having to remember to start the AVD manager first. Perhaps there should be a setting to choose bridge or AVD.
 

anuj0sharma

Member
Licensed User
hello

Hello Admin and all expert members :sign0085:
I am a new bee :sign0104: to the android development and not familier with any java coding..I want to connect my development platform to my pc via b4a-bridge.

1. where to find the "b4a-bridge.apk"? the link in foram has all source file in the zip. can anyone share the file?

2. how can I compile those source to .apk ? [if doing so is easy, I do not have eclipse]

3. can I use wired LAN between device and my pc to connect via b4a-bridge?
[no wireless capability in the device]

4. does b4a-bridge supports android 1.6? [as the device for devlopment runs the same]
 

anuj0sharma

Member
Licensed User
thanks for the prompt reply Erel :icon_clap:
I am trying my hands on b4a trial version only.
please compile the code and try to post the apk file to install it on the develpment device side.
thanks for the help, Erel.
 

Erel

Administrator
Staff member
Licensed User
There is no need to compile any code. The link I posted in the previous post is for the device application. You can also download it from the market. Search for B4A Bridge.
 

anuj0sharma

Member
Licensed User
:signOops:

I tryed that link. in my pc its always gets downloaded as a zip file with souce files inside. Is there a problem at my end?

anyways, sent u a requiest for standard version purchase..please do consider.
thanks again.
 
Status
Not open for further replies.
Top