I have a problem with setting the TTL on my Datagram packets. I am calling the setTTL(...) method on the packet before sending the packet to the multicastSocket but if I capture the packet with ethereal the TTL field is always set to 0
+1
A:
Funny that you should ask this, because I just wrote about this yesterday, I was having the same problem about 6 months ago. Basically you have to set an special system property telling the JVM to use an IPv4 stack
-Djava.net.preferIPv4Stack=true
pfranza
2008-09-26 14:35:33
thanks I'll give that a try
2008-09-26 14:36:16