Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to have a device with an Ethernet interface that only transmits UDP data? No incoming, no handshaking. I just want to know if it is possible, not if it is advisable. I need a device that will not listen to any incoming signal, but continuously sends it's data out to the network perhaps tagged a way to be able to identify the source given a closed or isolated network.

What I have tried:

Just theoretical at this point. I have only tried thought experiments.
Posted
Updated 13-Sep-17 11:10am

Yes, it is possible to do that. I implemented something similar that listens for incoming messages but only rarely receives any. Occasionally it doesn't receive anything for weeks at a time so it is close to what you are after.
 
Share this answer
 
Sure. UDP is "connectionless". It doesn't care if anyone is listening. It just sends the data to whatever destination you tell it to, including broadcast addresses. There are no "bounce back" messages that tell the sender the destination doesn't exist or isn't listening on the port you're sending to.

As far as identifying the sender, you could either use the source address in the IP packets, or better yet, create your own application-level protocol and send the identifier information in the data your device is sending.

You could even go so far as to have the device configurable over UDP to tell it what its identifier should be.

It's entirely up to you...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900