[jcifs] Detecting amount of network cards on your machine..

Michael B.Allen mballen at erols.com
Tue Dec 11 06:39:38 EST 2001


On Mon, 10 Dec 2001 16:46:53 +0000
J.Sugrue at pilz.ie wrote:

> hi.
> 
> This may be a stupid question, but it would be useful to know the answer.
> 
> I use SmbCrawler to check the names of machines on the same domain that I
> am on.
> However, my machine has 2 network cards, one which is not connected to the
> network.
>  This is slowing it all down a lot (a machine with 1 network card works
> fine).
> Is there any way of getting JCIFS to find out if a n/w card is not
> connected, and if it isn't to ignore that card totally, and just use the
> one that is connected to the network.

THe client should only use one interface (unless you're messing with
laddr properties) so if it works at all it will work just as it would
if you only had one interface. Please post a -Dlog=ALL that illustrates
the issue.

Mike


-- 
May The Source be with you.




More information about the jcifs mailing list