[jcifs] Resolution problems

Dan Diephouse diephouse at eastnode.com
Tue Aug 6 08:59:29 EST 2002


If you look at my message, you'l see my command line arguments.  Here is 
what I executed:

ocean:70[/home/dan/WDev/jcifs_0.6.5/examples]$ java -classpath 
$CLASSPATH:../jcifs-0.6.5.jar -Dbaddr=192.168.2.255 -Dlog=ALL List 
smb://presario

I used the "baddr=192.168.2.255" option.  Did I not use it correctly?

Thanks,

Dan

Allen, Michael B (RSCH) wrote:

> Try setting baddr=192.168.2.255. On Linux if you don't set this you 
> sometimes get a "Network is unreachable" message (see FAQ). The 
> "Permission denied" message is new to me but that could just be the
> equivalent message for FreeBSD. Ultimately Java doesn't provide a way 
> to extract the broadcast address of a machine and trying to send a 
> datagram on 255.255.255.255 can fail.
>
> I suppose it wouldn't be too difficult to determine a reasonable 
> broadcast address based on the local host address and it's IP address 
> classification.
>  
>
-- 
Dan Diephouse
http://eastnode.com






More information about the jcifs mailing list