Edited Post, which contains the Notebook!
For various different reaons, I am quite interested in taking advantage of .NET functionality in a clean manner and in an optimal "Mathematica Style". I usually summarize my projects in a notebook, which I can re-check and then use it in other projects. In this case, I was actually interested in accessing a UDP server that we run on our microscopes. However, since the microscopes were not accessible from outside the local network, I practiced my code by accessing a UDP time server and eventually got hooked up in the project until it was completed.
The main reason I am interested in the .NET functionality is that I have been trying to access hardware such as Arduino, NI-USB, oscilloscope boards and most recently scientific cameras from ANDOR. I then develop interfaces that use either the provided DLLs or the available .NET-based functionality.
This notebook should be run from the top. VERY IMPORTANT: The last few lines of code shut down the entire system in a clean and correct manner. The notebook has references to external links with all the documentation I could find at the time I developed it.
It would be neat to have a collection of notebooks that explained in some detail how to use these resources. Other topics could be access to USB devices, audio cards, video codecs, ...