Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to get NetBIOS Name?

Keywords:   Netbios

Question:

Once wxPing has returned a positive (meaning that the host at that particular IP address responded), is there a way to determine whether or not this is a "Microsoft" device. In other words, having only the IP address, is there a function I can use to query the device to see if it has a NetBIOS name? And if so, have it tell me what that NetBIOS name is? This will tell me whether the IP address is assigned to a network device (managed hub, router, switch, etc.) or to a host (NT workstation, NT server, Win9x workstation).

Answer:

Netbios name. Hmmm I dunno. Try example below

Server type? Try some variation of

AddExtender("www9534I.dll")
AddExtender("wwwsk34I.dll")
ip="207.195.133.129"
ipserver=strcat("\\",ip)
xxx=w95ServerType(ipserver)
addr=wxAddr2Host(ip)
Message(xxx,addr)

Article ID:   W14444
Filename:   Get NetBios Name.txt