joinGroup() method in MulticastSocket fails under Win 98 and Win 2000 also.
Tested with the following code.
public class Mcast1 {
public static void main(String[] arg) {
try {
MulticastSocket ms = new MulticastSocket();
InetAddress iadr = InetAddress.getByName("224.0.0.1");
ms.joinGroup(iadr);
System.out.println("working....");
} catch(Exception exp) {
exp.printStackTrace();
System.out.println("exp message: " + exp.getMessage());
}
}
}
Exception Message:
java.net.SocketException: set IP_MULTICAST_IF failed (code=10055)
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:282)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:230)
at Mcast1.main(Mcast1.java:12)
exp message: set IP_MULTICAST_IF failed (code=10055)
Tested with the following code.
public class Mcast1 {
public static void main(String[] arg) {
try {
MulticastSocket ms = new MulticastSocket();
InetAddress iadr = InetAddress.getByName("224.0.0.1");
ms.joinGroup(iadr);
System.out.println("working....");
} catch(Exception exp) {
exp.printStackTrace();
System.out.println("exp message: " + exp.getMessage());
}
}
}
Exception Message:
java.net.SocketException: set IP_MULTICAST_IF failed (code=10055)
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:282)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:230)
at Mcast1.main(Mcast1.java:12)
exp message: set IP_MULTICAST_IF failed (code=10055)