Why is my java program sending multicast packets with TTL 1?

I have a java client program that uses mdns with service discovery to find the server associated with it. After much testing on the same network as Windows, Fedora 10, and Ubuntu 8.10, we delivered a test build to the client. They report that the client and server never connect. They sent us a wirehark capture, which shows that the mdns packets have TTL 1, even if our code sets it to 32. When we test locally, the TTL is 32, as we installed it. The client uses Redhat Enterprise 5.

I saw Java Multicast Time To Live is always 0 , but I'm curious why this questionnaire has a TTL of 0, but mine is 1.

+3
source share
1 answer

Have you checked the answer to Java Multicast Time To Live is always 0 ? It may also solve your problem. The answer there refers to a blog post .

+3
source

Source: https://habr.com/ru/post/1702337/


All Articles