Hello,
Is there a way with the base libraries to get the IP address of the ethernet adapter without relying on the phone state change events?
The events work fine but I need to know it at app start.
The server IP trick ain't secure as you don't know if it's wifi or ethernet.
I found this old method https://www.b4x.com/android/forum/threads/serversocket-getmyip-returns-wrong-ip.60071/post-379128
but maybe there's a straight call in some standard library that does the same?
Is there a way with the base libraries to get the IP address of the ethernet adapter without relying on the phone state change events?
The events work fine but I need to know it at app start.
The server IP trick ain't secure as you don't know if it's wifi or ethernet.
I found this old method https://www.b4x.com/android/forum/threads/serversocket-getmyip-returns-wrong-ip.60071/post-379128
but maybe there's a straight call in some standard library that does the same?