Finding computer name using IP [Solved/Closed]

Ask a question ali - Last answered on Oct 9, 2012 at 12:01 AM by Shix

I need to find the computer name of one PC connected in LAN (joined to domain).
I have the IP address of terminal. how I will find the computername?

kindly advice

Thanks and Regards
See more 
plus moins
Just use below command in Start / Execute /

nbtstat -a xx.xx.xx.xx
where xx.xx.xx.xx is the IP address of the machine
Was this answer helpful?  
yogi- Dec 3, 2008 at 02:52 AM
How can I write tht script?

can u pls help me wid sme example?
wt type of script it is?
GiantLeap 94Posts Saturday November 29, 2008Registration date December 8, 2008 Last seen - Dec 3, 2008 at 12:14 PM
the script is an usual batch file like "install.cmd" or whatever placed to each PC's c:\path to userprofile\start menu\Startup folder

Example of install.cmd:
rem Mapping your remote folder as local hard drive
net use x: \\WorkstationToBeUsedAsFileServer\PathToYourSoftware

rem Changing path to the mapped folder

rem Running your software setup (for .MSI software)
msiexec /i software.msi /quit /norestart /AnyOtherOptionYouWant (check msiexec /? for more options)

rem Running your software setup (for .EXE software)

rem Disconnecting the mapped folder
net use x: /d

rem Shutting down PC
shutdown /s
wan- Apr 26, 2009 at 12:19 AM
Thanks, it help...
Ajit- Jun 14, 2010 at 06:22 AM
Thanks I got perfect command by u to find computer name through cmd
maNOJ- Jun 15, 2010 at 06:37 AM
hi dear teanks
plus moins
I dont think v can. only option is to ping the host name and find out the IP.. if not se the DHCP Adresses list in the DHCP sever
GiantLeap 94Posts Saturday November 29, 2008Registration date December 8, 2008 Last seen - Dec 2, 2008 at 03:28 AM
broadcast net view command and then do the nbtstat -a -n
shakti- Dec 17, 2008 at 09:18 AM
thanx bro its working
Bart- Apr 25, 2011 at 02:49 AM
Here is an example nbtstat -a
Shix- Oct 9, 2012 at 12:01 AM
nbtstat -a ---->>> that really works... thanks a lot...
plus moins



NSLOOKUP uses DNS and PING will try WINS and DNS
john- Apr 10, 2010 at 01:15 PM
Does it really work?
ken- Apr 14, 2010 at 09:52 AM
i couldnt get this to work but I am on a restricted PC
john da baptist- Apr 23, 2010 at 03:30 AM
mmm preciously
Bhushan- May 14, 2010 at 06:17 AM
It should work but make sure you are in domian network.
zeldazelda 1Posts Saturday May 22, 2010Registration date June 8, 2010 Last seen - Jun 8, 2010 at 10:06 AM
@srikanth I typed this "Nbtstat -a" withough quotes then this happend

Local area connection:
Node IpAddress: [] Scope Id: []

Host not found.

Wireless Network Connection 3:
Node IpAddress: [I hid this Ip address] Scope Id: []

Host not found.

TeamViewer VPN:
Node IpAddress: [] Scope Id: []

Host not found.
plus moins
nbtstat -a <ip address>
plus moins
plus moins
nbtstat -a (IP address of machine)
plus moins
use nslookup
chandrabhan- Nov 4, 2008 at 11:10 PM
Thanx dude, it worked well...
plus moins
Finding the IP address assigned to a computer is very simple. All you have to do is open the command prompt and use the IPCONFIG command. If you want to find the IP address associated with a specific computer name, you can use the NBTSTAT command. The syntax for doing so is as follows:

NBTSTAT -a <computername>

What if you want to find the computer name associated with a specific IP address? The solution is simple. You can once again find the information you are looking for using the NBTSTAT command, only this time with a different switch. Instead of using -a, you will use -A and specify an IP address as shown below:

NBTSTAT -A <ipaddress>

The results will tell you the computer name that is currently associated with the IP address you have specified.
Nickitick149- Oct 25, 2009 at 05:00 PM
Using the "NBTSTAT -A <ipaddress>" isn't working. There are a lot of ways that people are saying you can use to find your IP address, and most of the ones using command prompt are different. So, it always says "host not found" whenever I try. I think I know what it is, but it still draws a blank.

Plz Help!! ( But try to keep it simple, not extremely complex )
Cliona- Apr 23, 2010 at 03:30 AM
HaaaaaaaaaaaaaaaaHaaaaaaaaaaaaaaaa ;;
plus moins
nbtstat -A ipaddress
plus moins
which is the command used to display the list of IP address of the computers in LAN..
I used "net view" command but it displays only d network name...
Sarv- Jan 7, 2010 at 01:42 PM
dude first type net view that will give you the names of the system connected on ur network thn type ping <the name which you discovered from net view> that will ping the comp n will also return you its ip
plus moins
plus moins
you could always type in

net user into cmd
and this will give u the computer name and the people that use the network you are on

you don't really need the ip address of the computer to find out it's name

hope this helped.
vinnie- Feb 4, 2009 at 10:42 AM
Please help I actually want to be able to search the name of a computer with having an IP address. THe computer is connected to the domain but when the computers where set up to the domain no one wrote down the computer name with its IP so I was wondering is there a way to display all the computer names with the IP address or do a search on the server by the IP address that I have to be able to get the computer name or more info about that computer or user.
Thanks so much
NIKODA- Feb 19, 2009 at 10:01 PM
I need to know all the commands which I can use to find out host names using ip addresses. Its quite important in a LAN environment. Today I just fing someone is using my ip address and I need to know which computer is using my ip address!!
Thanks in advance
Kleinbaas vinnie - Mar 18, 2009 at 08:03 AM
FIXED: How to get a Computer-Name on a domain/network using the IP Address or Username a the user logged in on it.

1) Find the IP address of the computer if you do not already have it
1 a) Go to Computer Management (right click on My Computer and click on Manage)
1 b) Go to System Tools, Shared Folders, Sessions (in the left hand pane) and find the IP Address of the PC that the user is logged onto (this sometimes shows the computer name instead of the IP Address).

2) Find the Computer Name using the IP Address
2 a) Go to DHCP (in Control Panel, Administrative Tools)
2 b) Go to Scope, Address Leases in the left hand Pane and find the IP Address listed, this will then also give you the Computer Name

3) Go to and let us know how you got on.

Al - IT Support Technician for BrightVisions Ltd.
mabel- Mar 24, 2009 at 07:47 AM
Thanks for the tip, it works great, except that it appears to list all of the names that were ever associated with an IP address. I have multiple entries for the same IP.

Is there a way to refresh DNS so that it only contains valid connected names?
karan- Aug 12, 2009 at 10:18 AM
please tell me in what way I hack any pc in the world
plus moins
c:\nbtstat -a <>

Display a result as given format

Local Area Connection:
Node IpAddress: [] Scope Id: []

NetBIOS Remote Machine Name Table

Name Type Status
Netbios name <00> UNIQUE Registered
Workgroup/domain name <00> GROUP Registered
Netbios name <20> UNIQUE Registered
Workgroup/domain name <1E> GROUP Registered

MAC Address = xx-xx-xx-xx-xx-xx
mode- Sep 23, 2009 at 01:18 PM
My laptop was stolen , is there any way I can know the IP and user name for this pc when we are chating on line? coz I think he is using my pc . PLS I NEED ANSWER
chris- Oct 17, 2009 at 12:01 AM
hmmm....well are you actually chatting with the person? If so, there are a couple ways to do it.

If so, there's a couple of ways to go about it.

he first way to do it is to open your command prompt. This is what you'll be using to find the person.

while your chatting with him, send him something, anything. Send him a file, a picture, anything. If you think the person might be sketchy about it, use your imagination and be creative.
While the file is transferring, type in the command line: netstat -n .
Be sure to note the space between "netstat" and "-a".
While the file is being transferred, you are making a connection to your computer. that means that the i.p. is connected to you, therefore letting you transfer the files.
However, a person's ip can change depending on where they are or where they are connected.
Yet assuming that this isn't the case, we can glean a little information here.
Using this method, we of course fine out the I.P. address after a little information sorting. At the same time, we might even possible find the MAC adress as well.
Both of these are pretty much useless to us.
However, you can go to this website:

this will give you the infomation about what router they're using and who's providing their internet, and a few more details. If you contact these providers with the information displayed and give them your story, or if you talk to local authorities, you will most likely be helped.

Also, I'd say look around at softwares maybe. There are tons of hacking softwares everywhere, and a lot of them are extremely effective. I've used many softwares myself recreationally, and it's surprising just how much information you can get from a good hacking device. If you have any other questions, feel free to email me at "Email Id removed for security
I don't have all the answers, but I can certainly try to help. lol, it gives me an oportunity to learn more, if anything. Hope everything works out for you! =)
shashik- Jan 22, 2010 at 01:16 AM
hey chris hack my PC and give me any one image file from my pc, can hackers go on that level? Now it wont be crime if am telling u to hack my pc, isnt it?
what basic information do u need?
ali khan- Jun 3, 2010 at 11:11 PM
How to change computer name and workgroup to other pc in network using ms dos ya any other software
plus moins
to find out your ip just simply go to star search "cmd"
in cammand type tracert"space"any web site
yours is the first
plus moins
hay guys I would like to know how I find the domain name using an IP address
Mohit- Feb 20, 2010 at 06:19 AM
hey frined just go on command prompt & type there your domain name with ping you can get it's ip for example
plus moins
goto command and prompt and type ipconfig/all
plus moins
how to find name server name using cmd prompt
example I want
this name servers
i want use cmd ho what is the command
jitu- Feb 26, 2009 at 10:47 AM
1> command prompt
2> type ping www.any site name and entre.....
e.g ping
in a last give google ip adresss....
plus moins
hi try using nbtstat -ano ip of the terminal
plus moins
Dear sir,
send me detail description of my question.
Thanks a lot!
sainaw- Sep 16, 2009 at 03:50 AM
I will thanks for you question.....good luck!
plus moins
in desktop right click on my network places.
Select properties
select tcp ip portocol
select properties
1 2 3 Next

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!