Larry,

You need to check if your kernel and your network interface is multicast
capable.

Your kernel needs to be compiled with the option 'CONFIG_IP_MULTICAST=y'.
And your kernel should be at least a 2.0.x version if you didn't patch it.

Check your network interface configuration with 'ifconfig'. For every
multicast capable interface it displays the flag 'MULTICAST'.

Check your /etc/route.conf file. The multicast route must be set to
something like this if you want to use multicast on eth0:
    224.0.0.0    0.0.0.0    240.0.0.0    eth0

If all of this is ok it should work.

Rudi

-----Original Message-----
From: Larry Hsiao <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, July 23, 1999 2:29 PM
Subject: Invalid DatagramSocket option


>Hi,
>
>I have an applet that performs a multicast function on a Linux machine.
>The browser used is Netscape communicator 4.51. The applet is a signed
>applet and has passed the "Multicast" privilege checking when the applet
>is executed. Right after the privilege checking, the applet attempts to
>instantiate a MulticastSocket with the following code:
>              DatagramSocket socket = new MulticastSocket(6666);
>At this point, a SocketException occurrs.
>
>The Stack traces are:
>invalid DatagramSocket option
>at java.net.PlainDatagramSocketImpl.setOption
>(PlainDatagramSocketImpl.java:156)
>at java.net.MulticastCreate (MulticastSocket.java:111)
>at java.net.DatagramSocket. (DatagramSocket.java:115)
>at java.net.DatagramSocket. (DatagramSocket.java:101)
>at java.net.MulticastSocket. (MulticastSocket.java:92)
>at inria.net.MulticastSession.run (MulticastSession.java:205) -- applet
>code
>at java.lang.Thread.run (Thread.java:504)
>
>Note: The same applet running with Netscape communicator 4.51 under
>Windows is OK.
>
>Can someone tell me what's the cause of this problem?
>
>Thanks.
>
>Larry Hsiao
>Foresyte Technologies, Inc.
>
>
>
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
>
>


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to