Networking Forums

Networking Forums > Computer Networking > Linux Networking > is host exist

Reply
Thread Tools Display Modes

is host exist

 
 
xEM
Guest
Posts: n/a

 
      02-08-2004, 11:07 AM
How can i test if host exist, when host doesn't response for ping ?

--
pozdr.
~xEM
 
Reply With Quote
 
 
 
 
Horror Vacui
Guest
Posts: n/a

 
      02-08-2004, 01:45 PM
On Sun, 08 Feb 2004 12:07:48 +0000, xEM wrote:

> How can i test if host exist, when host doesn't response for ping ?


If you know what services are running on it (you can scan it with nmap),
you can "ping" a specific port using hping (or rather hping2)

Cheers
Horror Vacui
 
Reply With Quote
 
xEM
Guest
Posts: n/a

 
      02-08-2004, 10:26 PM
On 2004-02-08, Horror Vacui <(E-Mail Removed)> wrote:
>
> If you know what services are running on it (you can scan it with nmap),
> you can "ping" a specific port using hping (or rather hping2)
>
> Cheers
> Horror Vacui


Yes, that's working
So.. when i don't know services... ?

--
pozdr.
~xEM
 
Reply With Quote
 
Kurt
Guest
Posts: n/a

 
      02-09-2004, 02:13 AM

"xEM" <(E-Mail Removed)> wrote in message news:slrnc2c9kn.23p.me@192.168.1.5...
> How can i test if host exist, when host doesn't response for ping ?
>


See if an ARP entry appears for it in /proc/arp


Of course some other machine might answer for it. (how likely is that ? )



 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-09-2004, 04:43 AM
Kurt <(E-Mail Removed)> wrote:
> "xEM" <(E-Mail Removed)> wrote in message news:slrnc2c9kn.23p.me@192.168.1.5...


>> How can i test if host exist, when host doesn't response for ping ?


> See if an ARP entry appears for it in /proc/arp


> Of course some other machine might answer for it. (how likely is that ? )


A bigger problem is when the machine is in a different subnet. Then you
won't see any ARP requests for that particular machine.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-09-2004, 04:45 AM
xEM <(E-Mail Removed)> wrote:
> How can i test if host exist, when host doesn't response for ping ?


If you mean the ping is timing out, then the presence of the timeout
should tell you that the host is not responding (or is dropping your
ping packets).

Using a UDP ping may be useful also.

Otherwise, your kinda screwed (unless the host is in the some subnet, in
which case you can solicit an ARP request (ping -c1 IP &))

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
tibo
Guest
Posts: n/a

 
      02-09-2004, 10:00 AM

"xEM" <(E-Mail Removed)> a écrit dans le message de
news:slrnc2dhd1.ib.me@192.168.1.5...
> On 2004-02-08, Horror Vacui <(E-Mail Removed)> wrote:


>
> Yes, that's working
> So.. when i don't know services... ?
>
> --
> pozdr.
> ~xEM


With nmap, you can scan the open ports :

nmap -sT adress



 
Reply With Quote
 
Owen Jacobson
Guest
Posts: n/a

 
      02-10-2004, 01:30 AM
On Mon, 09 Feb 2004 11:00:19 +0000, tibo wrote:

> nmap -sT adress


ITYM 'nmap -sT -P0 host.name.or.ip' -- nmap normally tries to ping the
host first.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv4 host behind NAT talking to IPv6 host Noob Linux Networking 8 07-28-2011 10:34 PM
test a lpd-host if lp0, lp1, .. exist Ekkard Gerlach Linux Networking 0 08-16-2006 07:18 PM
Host-to-host connection in wireless adhoc network? Tim Boneko Linux Networking 0 08-17-2005 05:28 PM
Linux<->Windows connection using USB host-to-host cable =?iso-8859-2?Q?Rados=B3aw?= Grzanka Linux Networking 0 04-10-2004 03:23 PM
Access to public host from private host through Linux router Santanu Chatterjee Linux Networking 5 11-14-2003 11:57 PM



1 2 3 4 5 6 7 8 9 10 11