udp multicast example from sun does NOT work why?

Hi im having a hard time understanding why the multicast example from sun’s tutorial website do Not work on my machines.
the standard quote server one works between 2 machines on my local network when i tell the client to use my public ip of my server.
No matter what i try i cant get it to work…lol what am i missing, i havent changed a single line of code you would think if you put an example up for ppl to learn off it should work.
the multicast example will work when both client and server is running on the same machine but what good is that?
any pointers would be appreciated.
does the machine running the multicast server have to be in the dmz in order for it to work?

You didn’t link to the tutorial so I don’t know what you are talking about. :slight_smile: Also, I don’t understand your second sentence.

You might be able to glean something from Ninja:
http://code.google.com/p/ninjanetworking/source/browse/trunk/src/com/esotericsoftware/ninja/Network.java
See the discoverHost method.

I think multicast will only work on a LAN, other network hardware will block it.

http://java.sun.com/docs/books/tutorial/networking/datagrams/broadcasting.html

cheers makes sense i told everyone udp sucks…lol