Recently in the study of video calls, with open source project Imsdroid compiled to test, it is very unfortunate, with the Millet 3 Android4.4 system is not registered on the dead .... Later through the log analysis and ask the great God, found that Xiaomi changed the system API AH (i 艹. )。 The following two analysis logs:
I'll use Xiaomi 3 Android4.4 to get the native IPV4 address.
There's two of them.
192.168.132.42
10.0.2.15
Instead of the other phones only get to the beginning of the 192 ....
(Forum: http://bbs.csdn.net/topics/390855028)
Xiaomi mobile phone modified the API, if we get through the Android API, will be connected with the external network and the intranet IP display, and like the kind of Huawei does not have this problem.
After adding the shielding code: (I am currently in the Intranet test, so the first simple string matching masked out)