How to do a Reverse NetBIOS lookup to get Machine Name

I am trying to identify the Machine Name of a the computer that is currently accessing my website from within the Sites Code. I have found that when the client posts it sends its IP Address.

Currently I have been taking that IP address and executing:

host = System.Net.Dns.GetHostEntry(IPaddress).HostName; (Basically a Ping -a)

This works great as long as they have reverse lookup zones created and they are accurate which in this instance isn't the case.

However, their NetBIOS infrastructure is accurate but I don't know how to leverage it. Can anyone tell me how I can do a reverse lookup from an IP address via NetBIOS in C#

Basically a command that does the same thing as NBTSTAT -A IPAdress.




Answer this question

How to do a Reverse NetBIOS lookup to get Machine Name

  • How to do a Reverse NetBIOS lookup to get Machine Name