Find Machine Name and User Name with IP Address

Networking, connecting to the internet, wi-fi and home entertainment
BOOBALAN.V
5StarLounger
Posts: 717
Joined: 24 Aug 2017, 07:43

Find Machine Name and User Name with IP Address

Post by BOOBALAN.V »

Dear Community,

Is there any way to find my machine name and user name, if I know my IPv4 address? I tried the method which given below. But its showing "There are no entries in the list". What is this mean?

1) netstat -a myip
2) net view /domain:mydomain > D:\output.txt

User avatar
StuartR
Administrator
Posts: 11060
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Find Machine Name and User Name with IP Address

Post by StuartR »

netstat -a
will give you a list of all the connections and listening ports on your local computer. I am not sure what you intend to get from this.

net view /domain
will give you a list of all the computers that are sharing things in the domain

You can get your current computer name and username from the commands
hostname
echo %username%
StuartR


BOOBALAN.V
5StarLounger
Posts: 717
Joined: 24 Aug 2017, 07:43

Re: Find Machine Name and User Name with IP Address

Post by BOOBALAN.V »

Thanks for your kind reply sir. My intension is if I use "ping -a myip" this command it will shows with hostname. By using this command I could find hostname. But I want to know hostnames's user name. Can we find sir? if run "echo %username%" in my machine we can find user name. But if I want to know some hostname's user name how to find out sir. Kindly tell me sir.

User avatar
StuartR
Administrator
Posts: 11060
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Find Machine Name and User Name with IP Address

Post by StuartR »

That's not really possible. Many things with IP addresses have no username, or multiple usernames.
StuartR


BOOBALAN.V
5StarLounger
Posts: 717
Joined: 24 Aug 2017, 07:43

Re: Find Machine Name and User Name with IP Address

Post by BOOBALAN.V »

I understand. Thank you sir :thankyou: