Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4392770

joinGroup() method of MulticastSocket is not working under Win 98 and Win 2000

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • x86
    • generic, windows_98
    • Verified

      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)

            alanb Alan Bateman
            vakellasunw Venkata Akella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: