SOLUTION HERE
Class version
I share with you this code that works in B4A, B4I and B4J.
Requires B4A -> Network, B4I -> iNetwork, or B4J -> jNetwork
If you use this class you will be able to know if there is an active Internet connection, type of connection and the IP number.
In the case of B4J the only connection type is LAN, for B4I and B4A you can get whether it is WIFI or CELL.
You can also check if an IP is valid using IsValidIP(IP As String). It can be IPv4 or IPv6
...
[B4X] Check if Internet interfaces are enabled and internet status + type (WiFi/Cell/LAN)
This project combines two libraries, [B4X] SP Ping and [B4X] IFStatus. The following code shows how to use both libraries. https://www.b4x.com/android/forum/threads/b4x-sp-ping-run-the-ping-command-from-b4a-b4j-and-b4i.161861/...
www.b4x.com
Class version
I share with you this code that works in B4A, B4I and B4J.
Requires B4A -> Network, B4I -> iNetwork, or B4J -> jNetwork
If you use this class you will be able to know if there is an active Internet connection, type of connection and the IP number.
In the case of B4J the only connection type is LAN, for B4I and B4A you can get whether it is WIFI or CELL.
You can also check if an IP is valid using IsValidIP(IP As String). It can be IPv4 or IPv6
...
Last edited: