Menu

#97 Cant discover service IP when it's name contains spaces

open
nobody
networking (37)
5
2013-01-24
2011-05-23
Anonymous
No

Cant discover service IP when it's name contains spaces

Trying to resolve services hosted both on Windows and Mac machines from Android device.
Everything works as expected when computer name doesn't contain and space chars.
When it does, ServiceInfo returns correct .getName(), .getQualifiedName(), but .getInetAddresses() returns null.

Seems like all spaces should be replaced to '-' duing info discovery, but short patches to do replacement in JmDNSImpl.ServiceCollector didnt help.

Discussion

  • Anonymous

    Anonymous - 2011-05-23

    I'm an author, forgot to login.

    Library version used is 3.4.0, with various Android 2.0 devices/emulators.

     
  • Timothy Miller

    Timothy Miller - 2011-08-17

    Interesting. I'm having the opposite problem. I have four services of type "_http._tcp.local." that I'm looking for, and the only one whose IP address resolves is the one WITH spaces in the name.

     
MongoDB Logo MongoDB