> so what multicast groups (ip's) can i use in general? other than
> 230.0.0.1?
You can use any class D address (224.0.0.0 - 239.255.255.255), just
like the API documentation for MulticastSocket says.
But the specific choice of group is not really relevant to your
original problem, you still need to enable multicast routing between
the subnets. If that's not a workable solution for you, use a
multicast tunnel of some kind (try Google).
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Java and Swing - 29 Nov 2006 13:37 GMT
> If that's not a workable solution for you, use a
> multicast tunnel of some kind (try Google).
not sure if that's what I need. According to one site, "There is a
need to limit how long multicast traffic will expand across routers.
That's what the TTL is used for. Routers have a TTL threshold assigned
to each of its interfaces, and only datagrams with a TTL greater than
the interface's threshold are forwarded. "
They state....
TTL Scope
0 Restricted to the same host. Won't be output by any interface.
1 Restricted to the same subnet. Won't be forwarded by a router.
<32 Restricted to the same site, organization or department.
<64 Restricted to the same region.
<128 Restricted to the same continent.
<255 Unrestricted in scope. Global.
So, it seems that I can set the TTL on the datagram to be something
like 30, 50, etc to have it get past the router.
Link: http://www.oser.org/~oser/ds/node27.html
EJP - 29 Nov 2006 23:24 GMT
> So, it seems that I can set the TTL on the datagram to be something
> like 30, 50, etc to have it get past the router.
You can set the TTL to whatever you like but if the router isn't
configured to forward multicasts it won't.
Java and Swing - 30 Nov 2006 13:27 GMT
> You can set the TTL to whatever you like but if the router isn't
> configured to forward multicasts it won't.
true, actually it seems there is no method to set the TTL anyway.
Gordon Beaton - 30 Nov 2006 13:38 GMT
> true, actually it seems there is no method to set the TTL anyway.
What do you think MulticastSocket.setTimeToLive() does?
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e