4thline/cling — Issue #23: Cling couldn't get IP address on Android Wi-Fi Direct network
Author: kensuke
Created: 2012-02-16 07:40:41+00:00
State: open

-environment:
two or more android devices connect on Wi-Fi Direct each other
run cling, then IP address always returns zero

-target source:

org.teleal.cling.android.AndroidNetworkAddressFactory.java

public static NetworkInterface getRealWifiNetworkInterface(WifiManager manager) {

//....

int wifiIP = manager.getConnectionInfo().getIpAddress();
// when device connectd by Wi-Fi Direct, getIpAddress () is always returns "0"

//....

-more details:
http://mailinglists.945824.n3.nabble.com/Cling-couldn-t-get-IP-address-on-Android-Wi-Fi-Direct-network-td3740102.html