Hi, honestly i dont really understand your question, and im afraid if your question's misinterpreted..

Firstly, i think there's no such a thing like non windows-IP, maybe you mean non-windows (microsoft) OS ?

I tried that script from my client( 192.168.0.2,linux SuSe) and my destination host is 192.168.0.1 (win xp sp2), the first try, script looks like got hang, so i look closer at my ethereal, and i can say that 'the packet netbios query' is sent successfully, but no response from 192.168.0.1.
Then i turn off my xp sp2 firewall, try the script again, and i got the response (success !), here's the log (only the summary) :

Got something back: Total of 6 replies LJWT-1C2E2BF3 <0x00> <0x04> UNIQUE Workstation Service WORKGROUP <0x00> <0x84> UNIQUE Workstation Service LJWT-1C2E2BF3 <0x20> <0x04> UNIQUE File Server Service WORKGROUP <0x1E> <0x84> UNIQUE WORKGROUP <0x1D> <0x04> UNIQUE Master Browser __MSBROWSE__ <0x01> <0x84> UNIQUE Messenger Service Mac address: 00:xx:xx:xx

But, i am just curious, are you trying to nbtstat non windows OS, like linux box ? i mean are you trying to do something like this :

perl nbtstat.pl <linux box> ?

As far as i know NETBIOS is only (designed) for microsoft windows, but i am just not sure, maybe this answer is just another question..
But i am sure that this script is designed for microsoft windows as destination address


In reply to Re: nbtstat.pl fails for non-windows IP by doctor_moron
in thread nbtstat.pl fails for non-windows IP by sgrey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.