How to connect B4a-bridge between laptop and mobile phone network via Ad Hoc.
Tune & optimize speed on your internal network connection Android development.
Gradually my project has grown too.
Each time it costs me more time to compile and transfer the APK to smartphone.
Do not work with emulators.
Working directly with the device connected by wifi.
The wifi router through shared vg 8050 is two floors below, speed is not stable and varies 48Mbs until 5Mbs.
It is a router problem constantly negotiating between different 802.11n, 802.11g, 802.11b. So the connection between the laptop with AR9285 bgn network card and note 3 bgn/ac is a .....
horrifying terrible and odious !!!!
Solution.
Create an ad hoc network on the notebook.
Connect note 3 by B4A-Bridge.
65Mbps/72Mbps speed.
Very stable. Very fast. Without dropout. Independent router.
Laptop with internet connection to share your mobile.
Maximum distance 5-9 meters.
OldConfig To NewConfig
Settings in Windows 7 ultimate ............................................. .........
(Cmd) :: netsh wlan set hostednetwork mode=allow ssid=
MyNet key=
MyPass keyUsage=persistent
MyNet adapter properties / (TCP / IPv4) ::
IP Address: 192.168.137.1 (No modify this. Internal manage MiniPort Win 7)
Subnet Mask: 255.255.255.0
Everything else blank.
(Cmd) :: netsh wlan start hostednetwork
Finally we can only share the Internet access to the connection ::
on the adapter by which we get Internet
.- Sharing tab and activate Allow other network users connect via the Internet on this computer
.- Choose the name of the new connection that you created earlier
.- Allow other network users to control or disable the shared Internet connection
.- Configuration and activate there the last two boxes (HTTP and HTTPS).
Adapters Config::
Settings on the Note 3 ............................................. ..................
Now we have ready access point, enter Settings / Wireless / Wi-Fi Settings
Once there we give the button-down menu (which are next to the house) and enter "Advanced".
There activate Use static IP and put the following data:
IP Address:
192.168.137.110
Gateway: 192.168.137.1
Network Mask: 255.255.255.0
And nothing more. "NOTHING MORE"
OldConfig & NewConfig
(On Note3 press code *#0011# to get more data, and then Menu/WiFi )
This work !!!!
Result of the process:::
C:\>ipconfig
Configuración IP de Windows 7 Ultimate
Adaptador de LAN inalámbrica
Conexión de red inalámbrica 2:
Sufijo DNS específico para la conexión. . :
Vínculo: dirección IPv6 local. . . : fe80::5e6:ff68:c20c:8794%22
Dirección IPv4. . . . . . . . . . . . . . : 192.168.137.1
Máscara de subred . . . . . . . . . . . . : 255.255.255.0
Puerta de enlace predeterminada . . . . . :
Adaptador de Ethernet Conexión de área local:
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS específico para la conexión. . :
Adaptador de LAN inalámbrica
Conexión de red inalámbrica:
Sufijo DNS específico para la conexión. . :
Vínculo: dirección IPv6 local. . . : fe80::68fb:eb55:71ae:13ec%10
Dirección IPv4. . . . . . . . . . . . . . : 192.168.1.100
Máscara de subred . . . . . . . . . . . . : 255.255.255.0
Puerta de enlace predeterminada . . . . . : 192.168.1.1
Adaptador de túnel isatap.{54FB7255-1B5D-408B-AC05-7161BA80F048}:
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS específico para la conexión. . :
Adaptador de túnel isatap.{294C158A-E06A-4FE3-A4EE-6D0C4C643673}:
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS específico para la conexión. . :
Adaptador de túnel isatap.{17C66AC3-0F9F-4896-A8D7-59AE7348C4A2}:
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS específico para la conexión. . :
C:\>arp -a
Interfaz: 192.168.1.100 --- 0xa ...................................... (Laptop)
Dirección de Internet Dirección física Tipo
192.168.1.1 f8-8e-85-c7-51-a1 dinámico
192.168.1.101 5c-a3-9d-8f-c4-c2 dinámico
192.168.1.110 84-38-38-65-6c-fb dinámico ............(Smartphone-OldConfig)
192.168.1.111 c4-62-ea-86-56-4b dinámico
192.168.1.113 7c-61-93-36-7c-93 dinámico
192.168.1.114 1c-b0-94-4d-9d-28 dinámico
192.168.1.120 64-16-f0-46-80-0f dinámico
192.168.1.255 ff-ff-ff-ff-ff-ff estático
224.0.0.2 01-00-5e-00-00-02 estático
224.0.0.9 01-00-5e-00-00-09 estático
224.0.0.22 01-00-5e-00-00-16 estático
224.0.0.252 01-00-5e-00-00-fc estático
239.2.0.251 01-00-5e-02-00-fb estático
239.2.0.252 01-00-5e-02-00-fc estático
239.255.255.246 01-00-5e-7f-ff-f6 estático
239.255.255.250 01-00-5e-7f-ff-fa estático
255.255.255.255 ff-ff-ff-ff-ff-ff estático
Interfaz: 192.168.137.1 --- 0x16 ...................................... (Laptop)
Dirección de Internet Dirección física Tipo
192.168.137.110 84-38-38-65-6c-fb dinámico..............(Smartphone-NewConfig)
192.168.137.255 ff-ff-ff-ff-ff-ff estático
224.0.0.2 01-00-5e-00-00-02 estático
224.0.0.9 01-00-5e-00-00-09 estático
224.0.0.22 01-00-5e-00-00-16 estático
224.0.0.252 01-00-5e-00-00-fc estático
239.2.0.251 01-00-5e-02-00-fb estático
239.2.0.252 01-00-5e-02-00-fc estático
239.255.255.246 01-00-5e-7f-ff-f6 estático
239.255.255.250 01-00-5e-7f-ff-fa estático
255.255.255.255 ff-ff-ff-ff-ff-ff estático
FtpTransfer From Laptop to Note3 :::
With
OldConfig 77Mb: 5/7 minutes.
Now
NewConfig 77Mb: 19 sg
With a very bad internet connection theoretically 100 / 300Mb reflecting speed wireless router, not just the internet speed ISP
I can now work seamlessly with
B4a-Bridge.
With very good guaranteed rate , uncut and very stable.
Last Detail "Ip.Fordwarding" ............................................. ..................
It is possible from the laptop 192.168.1.100 to ping 192.168.137.110 unresponsive:::
C:\>ping 192.168.137.110
Haciendo ping a 192.168.137.110 con 32 bytes de datos:
Tiempo de espera agotado para esta solicitud.
Estadísticas de ping para 192.168.137.110:
Paquetes: enviados = 4, recibidos = 0, perdidos = 4
(100% perdidos),
This is because the laptop is configured as router, but need to activate the networks routing between 192.168.1.0 and 192.168.137.0
In Windows 7 you must activate
RRAS (Routing and RemoteAccess).
Start / Run services.msc / Locate "Routing and Remote Access" set to Automatic and start the service.
C:\>ping 192.168.137.110
Haciendo ping a 192.168.137.110 con 32 bytes de datos:
Respuesta desde 192.168.137.110: bytes=32 tiempo=78ms TTL=64
Estadísticas de ping para 192.168.137.110:
Paquetes: enviados = 4, recibidos = 4, perdidos = 0
(0% perdidos),
Tiempos aproximados de ida y vuelta en milisegundos:
Mínimo = 2ms, Máximo = 78ms, Media = 24ms
C:\>ipconfig /all
Configuración IP de Windows
Sufijo DNS principal . . . . . :
Tipo de nodo. . . . . . . . . . : híbrido
Enrutamiento IP habilitado. . . : sí
Proxy WINS habilitado . . . . . : no
....
....
See more details :::
http://computerstepbystep.com/routing_and_remote_access_service.html
And now you can make an shared network unit as ftp://user@192.168.137.110
.port/ and very good transfer speed, both the internal network or the external network (Intranet / Extranet) for example!!!!!
Another detail not less important.
When an ad hoc wireless network on implants in 2.4 GHz band, the theoretical speed 802.11n is 300 Mbps downstream and 150 Mbps upstream. In practice are 75Mbps downstream and upstream 25Mps to be shared among all connected equipment.
Ad hoc networks are very sensitive to interference of any kind, even an external hard drive close. It is therefore recommended that the router is configured at 40MHz on a fixed channel to be 1 or 11. Otherwise in 20Mhz down the speed and automatic channel generate constant changes in channel function is the quality of the signal.
The AdHoc network may be blocked causing constant disconnections B4a-bridge.
This is my experience after 3 months Basic4android, without knowing why not transfer the apk , believing that the problem was B4aBridge, or that the problem was the configuration of the notebook, or thinking that the phone was not working properly.
ISP's Router is the problem, and ISP no guarantee wifi connection, only external connection.
With this quick fix at no cost or depending on anything or anyone I managed to save a lot of long every day and every time compile the project.
I hope that works if only one person .
I think I had to share it !!!