androidnetbiosjcifs

JCIFS, Android, and getbyname


Well, tried the following bit of code:

import jcifs.netbios.NbtAddress;
...

              try{
                  NbtAddress addr = NbtAddress.getByName("Base");
              }catch (UnknownHostException e){}
...

And it throws that exception. Any ideas? I have tried it with a couple of named machines on the LAN


Solution

  • I was using the emulator. When I ran the app on real hardware the problem disappeared.