You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the exact same problem that someone had in 2010 (SourceForge), hence I quote that text below.
Question: What is the best way to make sure a client will always discover a service provider ON THE SAME DEVICE that was started BEFORE the client? (Starting client before provider works; the provider is discovered. Also, when provider is at another ip, it is resolved independent of what was started first).
Quote from 2010: "i have two processes on the SAME machine, the service provider and the service client. both start JmDNS on the host adress in the WLAN interface. when i am starting the service provider first, the client does not find the services, starting the client first the services are discovered"
The text was updated successfully, but these errors were encountered:
#138 (comment) might help you
I fixed it by changing how I got the local address (on Android) to properly get the IP, e.g. 192.168.1.xxx instead of 127.0.0.1
Other Service starts AFTER the client: Every service has to announce itself so you'll get the announcement. Everything should be fine.
Other Service starts BEFORE the client: Since the service knows "everything is fine" since its announcement was succesful and not challenged by anyone it just sits there and waits to be queried. So when starting the client it has to query for the services it is interested in. Otherwise one would have to wait for some other party in the network to try to refresh its cache and then get the service information as a side effect.
I have the exact same problem that someone had in 2010 (SourceForge), hence I quote that text below.
Question: What is the best way to make sure a client will always discover a service provider ON THE SAME DEVICE that was started BEFORE the client? (Starting client before provider works; the provider is discovered. Also, when provider is at another ip, it is resolved independent of what was started first).
Quote from 2010: "i have two processes on the SAME machine, the service provider and the service client. both start JmDNS on the host adress in the WLAN interface. when i am starting the service provider first, the client does not find the services, starting the client first the services are discovered"
The text was updated successfully, but these errors were encountered: