Multicasting

J

Jan Meskens

Hello everyone,

I am currently implementing a Java application and need to use
multicasting. How do I set up multicasting in Java ? Do I need to
configure something in my router to enable it? Or when I start a multicast
socket, the multicast group is created automaticly ?

All the documentation I can find handles Java multicasting with an already
existing multicasting group, I didn't found somthing how to create my own
multicasting group.

Is it also possible to set up 'reliable multicasting' in Java?

Best regards,

Jan Meskens
 
E

EJP

Jan said:
Hello everyone,

I am currently implementing a Java application and need to use
multicasting. How do I set up multicasting in Java ? Do I need to
configure something in my router to enable it? Or when I start a multicast
socket, the multicast group is created automaticly ?

All the documentation I can find handles Java multicasting with an already
existing multicasting group, I didn't found somthing how to create my own
multicasting group.

You create a multicast group merely by being the first to join it.

Multicasting will only work as far as the first router encountered which
doesn't want to play. ISPs typically do not support it (it is contrary
to their economic interests for one thing).
 
S

Steve W. Jackson

EJP said:
You create a multicast group merely by being the first to join it.

Multicasting will only work as far as the first router encountered which
doesn't want to play. ISPs typically do not support it (it is contrary
to their economic interests for one thing).

I'm not sure that ISPs really care so much about it one way or another.
I'm pretty sure mine has no specific policy -- or none that I've found.
And I do know that an implementation of UDP multicasting I did was
tested on a system at work where we have a hardware firewall and
successfully resulted in those UDP packets getting to another system at
home that was listening for them with the app I designed at the other
end for that purpose.

It would be a good idea for the OP to visit Sun's tutorial at
<http://java.sun.com/docs/books/tutorial/networking/index.html>. It has
reasonably good information on both TCP and UDP networking and addresses
multicasting.

= Steve =
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top