This discussion is archived
0 Replies Latest reply: Sep 5, 2012 4:55 AM by 869629 RSS

Working example of MulticastChannel

869629 Newbie
Currently Being Moderated
Hi,

Does anyone have a working example of MulticastChannel that would run on Windows 7 64 bits?
I'd like to know why this does not work:

final NetworkInterface networkInterface = NetworkInterface.getByName("eth0");
final DatagramChannel datagramChannel = DatagramChannel.open();
final InetAddress inetAddress = InetAddress.getByName("ff02::1");
final MembershipKey membershipKey = datagramChannel.join(inetAddress, networkInterface);

with

Exception in thread "main" java.net.SocketException: Unrecognized Windows Sockets error: 0: no further information

Thx

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points