Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

If you need to find a username but only have an ip address, if you use active directory (AD) then you can use the following method to find out the username:

  1. At the command prompt enter the following command:
    nbtstat –a ipaddress
    Where ipaddress is the ip address.
    This will list the machine name using that ip address.
  2. Then run the following command:
    net view /domain:ad > somefile.txt
    Where ad is the name of the domain you want to search and somefile.txt is the name of the file to contain the output.
    This will generate a list of every machine and who is logged in. 
  3. Open the output file and search for the machine name determined in step 1 (the username will be listed next to this).

HTH

Tim

Posted on Wednesday, May 3, 2006 8:30 AM OS/Networking/Misc Apps | Back to top


Comments on this post: How to lookup a user name and machine name using an IP address (on windows)

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
i want
Left by sandesh on Feb 17, 2007 10:45 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Good One!!!!
Left by Windows on May 23, 2008 6:56 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
didn't work for me.
Left by steve brown on Jun 20, 2008 5:18 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
This din't work for me.............................
Left by ARCHANA on Jun 26, 2008 2:13 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
good one
Left by Roby on Jul 24, 2008 8:07 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
at least for the machine name We used nslookup and could find the machine name from the IP address.

hope that helps the next person who stumbles onto this thread.
Left by omhoge on Sep 11, 2008 5:36 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Great little trick. I lost track of a computer on the network. Thanks!
Left by Hal on Feb 18, 2009 4:53 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Hoiw can I get the list of machines who are using IP address, Basically I want to capture those data / machines who are not using common proxy address which has been given by the organization.
Left by Dev Banerjee on May 19, 2009 7:17 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Thanks man. this works. u solved my problem :)
Left by Daniel on Jun 08, 2009 3:31 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
THIS did exactly what I needed Many Thanks
Left by Darkesyde on Aug 05, 2009 7:23 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
This only game me the Machine name not the user loged into the machine.
Left by Lee Levesque on Aug 17, 2009 8:32 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Same here - computer name only.
Left by scottwild on Sep 15, 2009 9:47 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
very helpful. Thanks.
Left by bp on Dec 02, 2009 10:28 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
I couldn't see any information regarding the user<-->IP
Getting the machine name from the IP or vise virsa is OK.

But how to know who is currently logged in to a specific IP?
Left by Bassel Kh on Feb 25, 2010 12:07 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
didn't work for me!
Left by Jen on Mar 24, 2010 11:19 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
how to look up ip through name and name through ip
Left by Rajinder Singh on Apr 02, 2010 11:22 PM

# This does not work to get user
Requesting Gravatar...
this doesnt work to get username
Left by doesnt work on Jun 22, 2010 12:34 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
didnt work for me as well.
Left by Asit on Jul 16, 2010 10:16 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Thanks lot. It helps me lot.

A minor correction in the syntax. change the small a to capital A

nbtstat –A ipaddress
Left by Bala on Jan 21, 2011 6:08 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
How to lookup a user name and machine name using an IP address
Left by Sulakshana on Apr 21, 2011 6:03 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
You could use ping -a <ip address> to get the machine name and then do the other trick
net view /domain:ad > somefile.txt
Left by Dusty Colvard on May 11, 2011 3:27 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Wao00 dats gr8 thanks buddy...:))
Left by Awais Bukhari on May 18, 2011 7:19 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
ping -a ipaddress
Left by bg on Jul 07, 2011 4:37 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
This is what I have always used...

nslookup ipaddress
Left by Dan K on Jul 12, 2011 4:15 PM

# GOOD
Requesting Gravatar...
Only after seeing all the designs that you will be able to make the final decision,
Left by black bridesmaid dresses on Jul 21, 2011 4:11 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
where is the output file located?
Thanks!
Left by danutts on Sep 01, 2011 2:46 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Save yourself some work. Instead of outputting to a file, pipe the results to the FIND command:

net view /domain:my_domain_name | find /i "\\target_pc_name"

Left by Marc S on Sep 29, 2011 10:45 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
By the way, someone has SQL injected a new website link into all of the comments on this post through 7/21/2011.
Left by Marc S on Sep 29, 2011 10:48 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Thank you
Left by Fazle Elahi Payel on Oct 11, 2011 3:43 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Easy to obtain useful information and share good things with good ideas and concepts.
Left by all best messages on Oct 26, 2011 5:18 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Nice one.thank u..
Left by Hardin on Nov 27, 2011 10:58 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
need help how to do find name of user from IP address.
Left by lyle sheftel on Nov 28, 2011 10:59 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Very Helpful.......thanks
Left by Divya on Dec 14, 2011 12:35 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
U r given command not worked
I want to show from ip address to computer name
Left by penchal rao on Dec 14, 2011 4:56 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Very nicely written post it contains useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
Left by Vietnam Air on Dec 18, 2011 1:04 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Classful network formatting allowed for a larger tally of individual network mission and fine-grained subnetwork design. The first three bits of the pack significant octet of an IP address were defined as the policies of the address.
Left by birthday tweets on Dec 28, 2011 5:28 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Circus

The Cirque du Soleil generation is absolutely incredible. You will be experiencing a road efficiency and then swap to an firefox efficiency. Acrobats, synchronized bathers, plusieurs and people execute in, on, and above water to create an remarkable show


Left by Cheap Celine Dion Tickets on Dec 28, 2011 11:51 PM

# Facebook Hacking
Requesting Gravatar...
Hello friends

someone hack my Facebook profile on 19/1/2012 and do's an unfogetable things with my friends

but thanks to god I have updated my recovery email address

I get my profile back from that mother fucker but i want to know that who was he actually

when i recover my Facebook profile I got an Email from Gmail in which I found some information

that hacker logged on cell phone his IP address is 220.227.41.243
from google.co.in i got this Ip is from Jalandhar, PB, IN

but I want to get him/her email address..

So, Please help me friends

Don't forget that one day someone will do this same with your profiles too

I hope to get some help from here

If, someone get's him/her please let me know on my working E-mail guardutt@gmail.com

Regards
Gaurav Dutt
Victim
Left by Gaurav on Jan 21, 2012 2:29 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
good bt not working... plz give me another solution.
Left by RUDRA on May 23, 2012 2:55 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Hello...
Can you please tell me step by step how can i find whose pc is with ip adress only... can u describe it step by step because i am not very well in pc program...
thank u
Left by Gloria on May 28, 2012 9:22 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
IP FIND UP
Left by sheshoo on Jun 27, 2012 8:04 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
i also want to know that kind of information i.p addresses how they operate with this
Left by funnystatusmessages on Sep 24, 2012 5:53 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Me also know about the IP address, so Please tell me about this info...
Left by bestsmsmessages on Nov 14, 2012 11:54 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
what's exactly means somefile.txt? where can i find this output file
Left by newbie on Nov 29, 2012 5:33 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
182.178.102.142 DSLAM Infrastructure North Pakistan
how i can find or you help me to find user name please as some one is trying to hack my id again and again from this ip
awtg
rgds
Left by mohsin ali on Dec 06, 2012 2:55 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Very adequately printed post it encloses helpful information for everybody. I am happy to locate your illustrious way of symbols the post.
Left by Best crossbow on Dec 17, 2012 10:40 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
using for i.p addresses is very unique thing to do
Left by love pictures on Dec 18, 2012 5:41 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
it work and very good
Left by susheel on Jan 19, 2013 2:44 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
my account is locked from this ip address 14.96.124.29 , i want to know the details of this ip address
Left by anusha on Feb 04, 2013 1:13 PM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
hacked my facebook Password
Left by rajendra on Feb 18, 2013 1:01 AM

# re: How to lookup a user name and machine name using an IP address (on windows)
Requesting Gravatar...
Using command : nbtstat -a <ipaddress>
this command will give you machine name and mac address
Left by venkatesh on Feb 18, 2013 4:00 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net | Join free