Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MulticastSocket joingroup problem  RSS feed

chidanand panshikar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program which we are implementing on a proxy. I used a MulticastSocket to multicast the message to various clients. However when I use joingroup method it gives an exception that 'NO SUCH DEVICE FOUND'.
I am giving the part of code. Please help because I am lost at this point.
However the code works fine on windows not on SUSE Linux. Any configuration missing? Its an IOException.

import java.awt.*;
import java.applet.*;

public class EncoderProxyClient implements Runnable
MulticastSocket s;
Thread t;
InetAddress mcAddress;
int mcPort;
public static final int MAX_LEN = 64*1024;
String curr_file = "";
String filePath = "c:/apache2/htdocs/elearning/courses/";
//String filePath = "/srv/www/htdocs/elearning/courses/";
long start, end, len;
int fileSize, byteSize;
boolean isNew = false;

public EncoderProxyClient()
int ttl = 3;
String ipaddress = "";
mcPort = 44444;
t = new Thread(this);
s = new MulticastSocket(mcPort);
System.out.println("Receiving Mode On..");
catch(Exception e)
System.out.println(" ..init.." + e.getMessage());
[ November 17, 2004: Message edited by: chidanand panshikar ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!