473,624 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to discover devices on network

I am developing an application that must look out over TCP on an
ethernet connection to
locate our proprietary devices. The Web application and the devices
are communicating over ethernet with TCP using known IP addresses at
present. We would like to design a method to discover devices in the
system without knowing their IP addresses. Is there a recommended
protocol for this type of problem or do most develop their own
protocol? Any suggestions on how to do this would be appreciated.

Regards, Stacy

Aug 8 '06 #1
3 2026
You have two choices: either probe for IP addresses on your network or sniff the
traffic to discover them. In the case of the latter, you might try using
WinPcap (http://www.winpcap.org/).

<st***@sensorsw itch.comwrote in message
news:11******** **************@ n13g2000cwa.goo glegroups.com.. .
>I am developing an application that must look out over TCP on an
ethernet connection to
locate our proprietary devices. The Web application and the devices
are communicating over ethernet with TCP using known IP addresses at
present. We would like to design a method to discover devices in the
system without knowing their IP addresses. Is there a recommended
protocol for this type of problem or do most develop their own
protocol? Any suggestions on how to do this would be appreciated.

Regards, Stacy

Aug 8 '06 #2
Hi,

Thanks for the suggestions, we can modify the devices, we are
developing them ourselves. Are you suggesting the I send a message out
to the subnet broadcast address IE: xxx.xxx.xxx.255 ? I thought that
UDP was not a guaranteed protocol, in which case, how can I be certain
that all devices do indeed receive and reply to the message?

Thanks again,
Stacy
Vadym Stetsyak wrote:
Hello, st***@sensorswi tch.com!

sI am developing an application that must look out over TCP on an
sethernet connection to
slocate our proprietary devices. The Web application and the devices
sare communicating over ethernet with TCP using known IP addresses at
spresent. We would like to design a method to discover devices in the
ssystem without knowing their IP addresses. Is there a recommended
sprotocol for this type of problem or do most develop their own
sprotocol? Any suggestions on how to do this would be appreciated.

IIRC there is no such protocol, but there are number of approaches how to handle the problem.

If you can modify devices ( I mean write additional logic on them ) and web app with devices are in the LAN,
then UDP broadcast/multicast can be used.
Devices will respond to that broadcast.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Aug 8 '06 #3
On 8 Aug 2006 09:11:05 -0700, "st***@sensorsw itch.com"
<st***@sensorsw itch.comwrote:
>Hi,

Thanks for the suggestions, we can modify the devices, we are
developing them ourselves. Are you suggesting the I send a message out
to the subnet broadcast address IE: xxx.xxx.xxx.255 ? I thought that
UDP was not a guaranteed protocol, in which case, how can I be certain
that all devices do indeed receive and reply to the message?
'Not guaranteed' does not mean totally unreliable. Very few
broadcasts fail. Still, all you do is broadcast periodically, once a
minute, or once every ten seconds. You will virtually never miss even
one. Missing three or four in a row is essentially impossible!

Of course, some network administrators take a dim view of broadcasts
and don't let them through the switches so make sure that those
broadcasts on that specific port address are acceptable.
Aug 8 '06 #4

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

Similar topics

0
1249
by: Ashraf Adel | last post by:
Hi all, I am monitoring some network devices using PHP ping. I want to - Initiate email DOWN alarms if the ping failed for 2 consequent times. - Initiate another UP alarm if the device comes back to life after death. - Don't repreat DOWN alarms "every monitoring cycle" if the first DOWN alarm was sent.
0
1596
by: abdul bari | last post by:
I am trying to simulate devices connected to a residential home network using .NET, using c#. Can this be reasonably be achieved if for example a UDP Multicast message is used to initially seek out devices connected, where for example a computer is representing a 'connected device' such as a toaster and in response to the multicast message the toaster responds declaring its status. In addition can a multicast group be simulated on a single...
12
3537
by: Michael Wimmer | last post by:
Hi, could anybody tell me what the current state of technology for mobile devices is? I have seen so far that there is cHTML (imode), wml, xhtml (full or basic) to be used for mobile devices. Which of these technologies should be used to create a web page for mobile devices, if the target audience will be limited to (central) europe?
0
952
by: chaks.yoper | last post by:
hi all, i would like to know whether python can help me querying the network devices attached to my system (ethernet,wireless) and display their module name and vendor name? thank you. regards, chakkaradeep.
1
1198
by: Microsoft | last post by:
In my app I want to create a drop down that lists the available SQL Servers on the Network. How do I discover what servers are out there? This is exactly like when you use File/Connect in Query Analyzer, you select the server you want to connect to then you enter you credentials or use Windows Auth. I just want the servers though. Thanks, Steve
1
1469
by: John Paul. A | last post by:
Hi, I have a 3rd party web service running in a Web Server within our network. The web service sends "Hello" message when joins the network and also sends "Bye" message when leaves the network. I want to write a client code to receive the "Hello" message as well as the "Bye" message sent by the web service. Can you please suggest me a sample code, so that I can discover (dynamically discover) the web service using the multicast...
1
1977
by: yawesome | last post by:
I am using Microsoft.VisualBasic.Devices.Network to download a file from a server to a PC and am receiving a 404 error. The file is in teh download location but it has 0kb. Does anyone have any idea why it's bombing? oNet.DownloadFile(URL, FIRMWAREPATH & "\update\update.tt", "name", "pwd", True, 1000, True)
25
2990
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) All of the PCs are running IIS
1
2550
by: allineed | last post by:
Im doing project which connect a bluetooth module to development board. unfortunely, my python code couldn't discover bluetooth devices. Can anyone help me to check my code ? thx you import socket,appuifw,e32 def bt_socket_connect(target=''): address, services= socket.bt_discover() if len(services) > 1:
0
8242
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
8681
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8341
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
7170
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...
0
5570
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();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1793
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.