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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving computer name from remote 3

Status
Not open for further replies.

bn2hunt

MIS
May 15, 2003
203
US
I would like to retreive the computer name of a pc using a specific Ip address. Is this possible?

Thanks

Dan
 
Do you want to accomplish this in a web page? If not, you can use the command prompt.

Start - Run - Type Command - Click Okay

If it's outside the network type tracert like:
tracert 111.111.1.101
and press enter

If it's within a network you can use nbtstat like:
nbtstat -a 111.111.1.111
and press enter
 
or from the command prompt, type net view, it will show you all of the computers on your domain/workgroup.
 
You can retrieve the result of the command line you run from a script. Just have a look in FAQS/Applications for the FAQ I wrote on the subject.
 
Thanks for your help, these worked great. The NBTSTAT command needs a -A instead of -a when using the ip I think that method works best for me.

Thanks again for your help

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top