[jcifs] Re: Resolution problems

Aaron J. Angel aangel at myrealbox.com
Tue Aug 6 16:30:25 EST 2002


>>java.version=1.3.1-p6
[snip]
> 	Are you sure it's ok to be using this Java version? From looking at the
> 	FreeBSD website, it looks like they're only up to 1.1.8. Why don't you
> 	use that instead?

FreeBSD runs up to J2SE JDK 1.3.1p7 natively.  As far as the error...

 > java.io.IOException: Permission denied
 > [...]
 > PRESARIO<1D> 0.0.0.0<00>/0.0.0.0
 > 0.0.0.0<00> 0.0.0.0<00>/0.0.0.0
 > PRESARIO<20> 0.0.0.0<00>/0.0.0.0

Well, it seems to be a problem with permission sending broadcast 
packets.  Assuming "permission denied" is in fact the real error, here's 
what the send() manpage has to say about it (provided, I would assume, a 
firewall is not in the way):

 > [EACCES]           The destination address is a broadcast address, and
 >                    SO_BROADCAST has not been set on the socket.

The J2SE 1.4 and below API specifies that SO_BROADCAST is supposedly 
automatically enabled, but I get the error in both 1.4 and 1.3, and
there's no firewall in the way.  get/setBroadcast() is introduced in the 
1.4 API, even though SO_BROADCAST sends are always enabled, so I still 
don't know why java is complaining.







More information about the jcifs mailing list