hack_soldier
Member
Hi everyone,
I'm trying to understand the networking setup involved when debugging a B4A app, specifically when using B4A-Bridge versus using ADB (either via USB or TCP). I'm getting a bit confused about which ports are used in each scenario, and what the fundamental differences are. I'm hoping some of the experts here can clarify.
Here are my specific questions:
Thanks in advance!
I'm trying to understand the networking setup involved when debugging a B4A app, specifically when using B4A-Bridge versus using ADB (either via USB or TCP). I'm getting a bit confused about which ports are used in each scenario, and what the fundamental differences are. I'm hoping some of the experts here can clarify.
Here are my specific questions:
- B4A-Bridge Ports: When I use B4A-Bridge to connect my device to the B4A IDE for debugging, what ports are involved? Is it just one specific port, or a range? Is the port number fixed, or does it vary? I am guessing that a port is open on the device, and the IDE connects to it. Is this correct? Does a port also needs to be open on my development PC?
- B4A-Bridge vs. ADB (USB/TCP): What are the key differences between using B4A-Bridge and using ADB (either through a USB connection or ADB over TCP/IP) for debugging, in terms of network communication?
- ADB Port Forwarding (if applicable): If I'm using ADB over TCP/IP, I understand I might need to use adb forward. How does this relate to the ports used by B4A itself during debugging? Are we forwarding the B4A debugging port, or is it something else?
- Security: Are there any security differencies between those methods?
- Concrete Example (if possible): Could someone provide a concrete example of the ports typically used in both scenarios (B4A-Bridge and ADB TCP/IP)? For instance:
- B4A-Bridge: "B4A IDE (PC) uses [Port X] to connect to the B4A-Bridge app on the device (listening on [Port Y])."
- ADB TCP/IP: "ADB uses [Port A] on the PC and [Port B] on the device. B4A debugging communication happens over [possibly different ports, or maybe the same ones?], which are forwarded by ADB."
Thanks in advance!