Subj : Android JmDNS vs. Android Network Service Discovery
To   : Nightfox
From : Digital Man
Date : Thu Jun 09 2022 02:16 pm

 Re: Android JmDNS vs. Android Network Service Discovery
 By: Nightfox to Digital Man on Thu Jun 09 2022 12:02 pm

>   Re: Android JmDNS vs. Android Network Service Discovery
>   By: Digital Man to Nightfox on Thu Jun 09 2022 10:57 am
>
>  DM> The underlying system function is probably getaddrinfo
>  DM> (https://linux.die.net/man/3/getaddrinfo) which provides the caller
>  DM> control over the inclusion/exclusion of address families (e.g. IPv4 or
>  DM> IPv6). I'm not familiar with JmDNS or the Android network service
>  DM> discovery API, but look for similar control over the address "families"
>  DM> that may be returned by such discovery functions.
>
> I suspected there may be some underlying function to control which type of
> network addresses are returned.  When using the JmDNS library, there was
> nothing specifying to use either ipv4 or ipv6 addresses (and it was getting
> an ipv4 address previously).  I hadn't changed anything in the app to
> specify which type of address to receive though; for some reason it seemed
> to change on its own.  It had started working again with the JmDNS library,
> but when I ran through some specific steps, it triggered something to only
> get an ipv6 address (no change in the code).

Could the change just simply be on the DNS records for the address your resolving? Are you seeing this same change in behavior for all addresses being resolved or just some?
--
                                           digital man (rob)

Synchronet "Real Fact" #23:
The third ever Synchronet BBS was The Beast's Domain (sysop: King Drafus)
Norco, CA WX: 89.0�F, 43.0% humidity, 15 mph S wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net