473,769 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4374
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
465
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.. Does nmap is available on every systems? I tried on my linux fc4 machine in user previleage. it was not working. Does this just belongs to superuser...
10
6046
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 computers cannot access the database. The message is...
3
3876
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
1242
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 still run the programs on a home network environment. I want to be able to install the main SQL databases on one computer and have other computers access those on the network. Is there a way in VB 2005 for computers to search for instances of...
4
7697
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 want to be able to produce a list and work it from there. I found the following method: String path = "WinNT://MY.DOMAIN.COM"; String username = "administrator";
1
2198
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 clients computer is started An entry in the registry HKCU\Software\Microsoft\Windows\CurrentVersion\Run launches my Update program on the next windows XP start
2
1861
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 provide this, if not, coudl you provide me some guiadance with unmanaged APIs or wrappers. -- Fernik http://www.fernik.com.ar
17
5566
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 in that chapter and create a socket connection between my desktop and laptop. However, these two computers are already connected on my home network (using the Windows Network Setup Wizard), so I was wondering if this will have any effect on what...
6
4211
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 recommended. If anyone has some suggestions, I'd love to give them a try - this is driving me nuts!! I am connected via wired-LAN to a Linksys WRT-600N router; there are 4 other computers on the network. The other 3 computers are working perfectly...
24
5822
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 and connects to that server directly and both the server and client sever their connections with the masterserver. Problem: I have the masterserver set up at a location and it is not behind a router or firewall or anything, just directly connected...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.