AW: [jcifs] unable to fetch workgroups under winxp

Michael B Allen mba2000 at ioplex.com
Fri Aug 8 19:37:18 EST 2003


> hallo
>
>> >> So are you running nbtstat on the machine you're runnin
>> jCIFS on? Is
>> >> the XP machine 192.168.0.1? Are you running nbtstat on
>> 192.168.0.1 or
>> >> is that different machine?
>> >
>> > nbtstat is running on the same machine i am using jCIFS on which is
>> > the xp machine with the 192.168.0.1 ip. so it is all the
>> same computer
>> > here.
>>
>> Then I guess the machine is not listening on the interface
>> jCIFS is broadcasting on. Java does not provide a way to
>> determine the broadcast address of interfaces so we use
>> 255.255.255.255. This is usually sufficient but you might try
>> to specify it explicitly with the baddr properties. If you
>> are only interested in the localhost you might try
>> 127.0.0.255 too. Unfortunately there have been vague reports
>> that XP and W2K do not listen on any interfaces under certain
>> circumstances in which case there's probably little you can do.
>
> jeah the bcast address is wrong... unfortunaly i have tried to set all
> kinds of ips for it with jcifs.Config.setProperty( "baddr", <ip>);
> non has worked... 127.0.0.255 eiter. i guess i'll have to quit working
> with jCIFS (at least on this machine). if you find a way i'd be happy to
> hear about it.
>
> thx anyways
>
> moritz post
>

You might try setting laddr = 127.0.0.1 as well. But I think XP just isn't
listening to requests from the localhost in which case you're SOL.

Mike



More information about the jcifs mailing list