How to find IP address of a machine on network?

NoOp glgxg at sbcglobal.net
Sat Jan 17 03:07:02 UTC 2009


On 01/16/2009 06:27 PM, Charles Darwin wrote:
> On 16-Jan-09, at 4:20 PM, NoOp wrote:
> 
>> Nmap done: 256 IP addresses (6 hosts up) scanned in 2.741 seconds
> 
> -bash-3.2$ uname -v && time dns-sd -B _ssh._tcp .
> Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008;  
> root:xnu-1228.9.59~1/RELEASE_I386
> Browsing for _ssh._tcp
> Timestamp     A/R Flags if Domain                    Service  
> Type              Instance Name
> 21:22:16.685  Add     2  1 local.                     
> _ssh._tcp.                Ubermensch
> ^C
> 
> real	0m0.799s
> user	0m0.001s
> sys	0m0.002s
> 
> It seems to me using nmap "for what we are trying to do here" is like  
> using an artillery shell to knock out a mosquito, don't you thinnk?
> 

No. As it doesn't work on my machine.

1. $ uname -v && time dns-sd -B _ssh._tcp .
#1 SMP Thu Nov 27 18:44:42 UTC 2008
bash: dns-sd: command not found

real	0m0.274s
user	0m0.200s
sys	0m0.052s

2. The OP asked:

<quote>
I have just installed ubuntu onto a machine and have connected it to
my LAN.  The router provides DHCP and the new machine is up and
running on the network.

How do I connect *to* the machine?  I need to know its IP address and,
as there are a few devices which get their address by DHCP it's not at
all obvious what the machine's address is.

Eventually I will probably give it a fixed address (for this reason
among others).
</quote>

and then stated:

<quote>
Quite right, so I have a machine that runs sshd and I want to connect
to it and I know it's on the LAN but not its IP address.
</quote>

sudo nmap 192.168.2.* -p T:22

took like 2+ seconds on my tiny test network with the machines I
currently have up, scanned 6 machines (including 2 routers), and
provided me with: 1) IP address, port state (open, closed, filtered), 2)
the host name of the machine (if any), and 3) the MAC address of each
machine. It appears to me that your mosquito (albeit a fast one) is just
that, a moquito :-)

Ping - Chris G: You started this thread, how about posting back
regarding the options provided?







More information about the ubuntu-users mailing list