I am running a server on Ubuntu 18.04 that uses the jmDNS library for discovery. The code that initializes it is:
jmDNS = JmDNS.create(InetAddress.getLocalHost());
serviceInfo = ServiceInfo.create("_http._tcp.local.", "Service", 65534, "Ready");
However, when it resolves on a client on another machine, the IP address is 127.0.1.1. The client is configured as such:
jmdns = JmDNS.create(InetAddress.getLocalHost());
When I run this on a non Ubuntu machine, the IP Address is correct. I'm trying to figure out what's causing this.