// gets the ip address of your phone's network - not needed here for the receiver
private String getMyIP() {
try {
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
//Log.i("HFCM", "Found address: " + inetAddress.toString());
//if (!inetAddress.isLoopbackAddress()) { return inetAddress.getHostAddress().toString(); }
}
}
} catch (SocketException ex) {
Log.e("ServerActivity", ex.toString());
}
return null;
}
Das sieht noch nicht gut aus… siehe https://github.com/EnlighterJS/Plugin.WordPress/issues/31
