Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking of Netbios Name

Status
Not open for further replies.

STibbs

Programmer
Apr 1, 2002
17
CA
Does anyone have a web page that will show the netbios name of a computer when you spark a web page? Looking to add code to my existing web to show users the computer name that they are on when trouble shooting.
 
Well, to get their IP address you can use
Code:
Request.ServerVariables("REMOTE_ADDR")
.

Given an IP address you can use the NBTSTAT command from a command prompt like:

Code:
nbtstat -A <ip address>

But not sure how you could access this from the ASP page exactly without experimenting a bit...

--James
 
Thanks. I was hoping to make it one step. I am not sure how to call the dos window to implement this command from the web. Some kind of bat file that would take the parm I guess.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top