473,320 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Detecting computers on network

Hello dear

I had sent my earlier queries regarding same topic. However just to be more
specific this time..

I just wann try to detect that if there are some ip address in a list of
some ip address alive or not.

How can i do this?

Shall i try to connect them and check that my connection is working or not?
If working than means alive .... (connection based)

SHalle i send some buffer value (whatever) to socket using sendto(...) and
then checking for return value? (Connectionless)

Well for me it doesnot matter that i should have connection or
connectionless.. I just wannn know who are alive in my LAN?

This application will be for my computers in lan. not for maganetwork.

LAN will have just some bridges and computers.

i need to detect tham all..

however i doesnot matter that all of them replies or not. I just wann know
that atleast some of them reply. Rest i will take care of...
Sandeep

__________________________________________________ _______________
NRIs, does your family in India need money urgently?
http://creative.mediaturf.net/creati...CI_NRI_ERA.htm Open an
ICICI Bank NRI savings A/c

Jul 22 '05 #1
5 4343
How about sending an ICMP echo packet to your broadcast address and
checking which hosts send a reply

Jul 22 '05 #2
How about sending an ICMP echo packet to your broadcast address and
checking which hosts send a reply

Jul 22 '05 #3
linuxfreak enlightened us with:
How about sending an ICMP echo packet to your broadcast address and
checking which hosts send a reply


Won't work on all boxes. Windows boxes ignore broadcast pings, for
example.

I'd go for a call to "nmap -sP" instead, and filter it's output.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Jul 22 '05 #4
You could use a sniffer in promiscuous mode. pypcap -- or something
like. This will record every packet seen by your network card. Whether
is will work depends on whether you are on a true braodcast network.

if a box is on and completely inactive you'll never see it, but most
boxes do something. Windows boxes positively shout about there presence :-)

baically this is pasive nmap, nmap will try to open a tcp or udp
connection on every machine. your going to generat a lot of traffic.

If you've got access to the boxes enabling ICMP and using that is the
proper way.

Sandeep Arya wrote:
Hello dear

I had sent my earlier queries regarding same topic. However just to be
more specific this time..

I just wann try to detect that if there are some ip address in a list of
some ip address alive or not.

How can i do this?

Shall i try to connect them and check that my connection is working or
not? If working than means alive .... (connection based)

SHalle i send some buffer value (whatever) to socket using sendto(...)
and then checking for return value? (Connectionless)

Well for me it doesnot matter that i should have connection or
connectionless.. I just wannn know who are alive in my LAN?

This application will be for my computers in lan. not for maganetwork.

LAN will have just some bridges and computers.

i need to detect tham all..

however i doesnot matter that all of them replies or not. I just wann
know that atleast some of them reply. Rest i will take care of...
Sandeep

__________________________________________________ _______________
NRIs, does your family in India need money urgently?
http://creative.mediaturf.net/creati...CI_NRI_ERA.htm Open
an ICICI Bank NRI savings A/c

Jul 22 '05 #5
Peter Tillotson enlightened us with:
You could use a sniffer in promiscuous mode. pypcap -- or something
like. This will record every packet seen by your network card.
Whether is will work depends on whether you are on a true braodcast
network.
That's not going to work on a switched network, which most modern
networks are.
Windows boxes positively shout about there presence :-)
Definitely true.
baically this is pasive nmap, nmap will try to open a tcp or udp
connection on every machine. your going to generat a lot of
traffic.


Not if you tell it to use ICMP pings only.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sandeep Arya | last post by:
Thanks linuxfreak and sybren for positive comments My application will be running on Linux. How to send ICMP ECHO as broadcast packets. I do not know this. Please tell me how to? Sybren.....
10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
3
by: Steve | last post by:
Hi all How would i get a list of all Active Computers on a network? All I need are the computer names. Kind Regards, Steve.
6
by: Nathan M | last post by:
Hi, I have a few projects with which I am using Access as a backend. I am thinking about upgrading them to the .NET framework 2.0 and switching to SQL Server. First I want to make sure I can...
4
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
1
by: Steve | last post by:
Hi All I have a windows application (written in VB.net 2005) which I update via web downloads to my clients computers The downloaded file is saved in a subfolder until the next time the...
2
by: =?Utf-8?B?RmVybmlr?= | last post by:
Hi, I need to get a list of the computers in my WorkGroup LAN, with its names in a similar way you get the available Drives from a PC with DriveInfo.GetDrives(). Is there a managed class that...
17
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
6
by: belias | last post by:
So...here we go. I'm having an issue with one computer on a network not being able to ping other computers by name. I've spent the last day searching similar issues and I've tried all the steps...
24
by: Asja | last post by:
I have written an application that runs in a kind of peer-to-peer framework. Servers connect to a masterserver, which a client then queries to receive a list of servers. The client selects a server...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.