Archived from groups: alt.internet.wireless (
More info?)
On Fri, 19 Aug 2005 06:54:32 GMT, David Taylor <djtaylor@bigfoot.com>
wrote:
>Easier to do:-
>
>ipconfig /all
>
>Then nbtstat -A <ip address of the default gateway address retrieved
>from above>
>
>Then just pick out the entry with the <00>
That only works if the gateway is a Windoze machine. The original
question implied that he's connecting to a computer, but it's more
likely that it's really a router. I just tried it point to my
BEFW11S4v4 gateway/router and got:
C:\junk> nbtstat -A 192.168.1.1
Local Area Connection:
Node IpAddress: [192.168.1.11] Scope Id: []
Host not found.
>The problem with NET VIEW is that it relies on the browser service which
>through it's basic operation is unreliable, particularly in a
>multiworkgroup/domain environment in the absence of WINS or cross
>related entries in LMHOSTS.
True. Windoze browser service is marginal at best. I just love
waiting 12 minutes for updates. You can bypass the browser service by
simply pointing directly at the IP addresses. If sharing is enabled,
even if there are no open shares, it will show the machine name. Of
course, one needs to know the IP address of the target machine first.
Start -> run -> \\192.168.1.1
or
Start -> run -> \\Netbios_name
>Therefore it's far easier to just query the other machines netbios name
>table.
Yep, if it's a Windoze machine and not a router.
Incidentally, I use a program called NBTSCAN to search blocks of IP's
for machines.
http://www.inetcat.org/software/nbtscan.html
NMAP works, but it far more complex than I need for simply identifying
machines.
C:\blah> nbtscan 192.168.1.0/24
>Doing NBT name scan for addresses from 192.168.1.0/24
>
>IP address NetBIOS Name Server User MAC address
>------------------------------------------------------------------------------
>192.168.1.0 Sendto failed: Cannot assign requested address
>192.168.1.1 Recvfrom failed: Connection reset by peer
>192.168.1.11 CHOLESTEROL <server> <unknown> 00-02-b3-1e-39-ed
Well, not very interesting because I tore apart my network last night
and only have one machine online. Some of the other machines that
have firewalls running appear invisible, which is good.
--
Jeff Liebermann jeffl@comix.santa-cruz.ca.us
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060
http://802.11junk.com
AE6KS 831-336-2558