LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I locate the computer name in network (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-locate-the-computer-name-in-network-718121/)

michalng 04-10-2009 01:09 AM

How can I locate the computer name in network
 
I have 3 computers connected to my wireless router and the ip is assigned by dhcp.


Assuming I am 192.168.1.101 and I did a ping and confirmed that the other 2 computers is also connected at 192.168.1.102 and 192.168.1.103.


As each computer have their own names (e.g. computer_games and computer_video) how can I find out which 192.168.1.102 and 192.168.1.103 is?

danguba 04-10-2009 02:59 AM

Quote:

Originally Posted by michalng (Post 3504296)
I have 3 computers connected to my wireless router and the ip is assigned by dhcp.


Assuming I am 192.168.1.101 and I did a ping and confirmed that the other 2 computers is also connected at 192.168.1.102 and 192.168.1.103.


As each computer have their own names (e.g. computer_games and computer_video) how can I find out which 192.168.1.102 and 192.168.1.103 is?

Have you tried pinging computer name.... or dirty way.... plug one of them off... and the one you cannot ping any more is the one you just shut down

flopypl 04-10-2009 03:23 AM

if you have phisical access to these computers you can type:

#ifconfig
and you will see IP of this computer and
#hostname
to see hostname

If you haven't phisical access you can use some network scanner to discover your network.

Regards
Krzysiek

michalng 04-10-2009 04:36 AM

Was hoping for a command to be able to resolve the ip address to computer name.


Googled quite a bit but was unsuccessful.

flopypl 04-10-2009 10:42 AM

here you have some information:
https://www.linuxquestions.org/quest...tnames-560971/

You should read bathory post in this thread.

Regards


All times are GMT -5. The time now is 03:14 PM.