I want to check in the app whether wifi router supports mulitcast. My app receives multicast to find device, but some routers don't support mulicast or configure to disable mulicast in their router setting, so we cannot find device in this router at all.
If the app finds that the current router doesn't support multicast, I can show user this information. But I don't find related API. Is that possible? My code:
mMultiCastSocket = new MulticastSocket(LSSDP_PORT);
mMultiCastSocket.setReuseAddress(true);
mMultiCastSocket.setReceiveBufferSize(32 * 1024);
mMultiCastSocket.joinGroup(new InetSocketAddress(LSSDP_MULTICAST_ADDRESS, LSSDP_PORT), NetworkInterface.getByName(name));