MTConnect.NET-DeviceFinder
7.2.0.105
dotnet add package MTConnect.NET-DeviceFinder --version 7.2.0.105
NuGet\Install-Package MTConnect.NET-DeviceFinder -Version 7.2.0.105
<PackageReference Include="MTConnect.NET-DeviceFinder" Version="7.2.0.105" />
<PackageVersion Include="MTConnect.NET-DeviceFinder" Version="7.2.0.105" />
<PackageReference Include="MTConnect.NET-DeviceFinder" />
paket add MTConnect.NET-DeviceFinder --version 7.2.0.105
#r "nuget: MTConnect.NET-DeviceFinder, 7.2.0.105"
#:package MTConnect.NET-DeviceFinder@7.2.0.105
#addin nuget:?package=MTConnect.NET-DeviceFinder&version=7.2.0.105
#tool nuget:?package=MTConnect.NET-DeviceFinder&version=7.2.0.105

DeviceFinder
Overview
The MTConnect.NET-DeviceFinder library is used to search a network to find MTConnect Devices. The MTConnectDeviceFinder class contains events for when a new MTConnect Device has been found as well as events for what IP addresses were reachable and what ports were open on those addresses.
The sequence of operations is described below:
- Ping IP Addresses : The IP Addresses within the specified AddressRange will be sent a Ping request. Each successfully Pinged address is added to a list of reachable addresses
- Test Ports : For each IP address that was successfully Pinged, a TCP connection is established based on the specified PortRange to test if the port is open and if there is an application listening on the port
- Request MTConnect Probe : For each of the Ports that were found to be open in the previous test, an MTConnect Probe request is sent to attempt to connect to an MTConnect Agent. If any devices are found, each MTConnect Device is returned in a separate DeviceFound event that contains information about the MTConnect Device and the Network connection.
Usage
using MTConnect.DeviceFinder;
var finder = new MTConnectDeviceFinder();
finder.ScanInterval = 60000; // Interval in milliseconds
finder.Addresses = new AddressRange("192.168.1.0", "192.168.1.255");
finder.Ports = new PortRange(5000, 5020);
finder.PingSent += Finder_PingSent;
finder.PingReceived += Finder_PingReceived;
finder.PortOpened += Finder_PortOpened;
finder.PortClosed += Finder_PortClosed;
finder.ProbeSent += Finder_ProbeSent;
finder.ProbeSuccessful += Finder_ProbeSuccessful;
finder.DeviceFound += Finder_DeviceFound;
finder.SearchCompleted += Finder_SearchCompleted;
finder.Start();
void Finder_DeviceFound(MTConnectDeviceFinder sender, MTConnectDevice device)
{
Console.WriteLine($"{device.IpAddress}:{device.Port} : {device.Name} ({device.Uuid})");
}
void Finder_SearchCompleted(MTConnectDeviceFinder sender, long milliseconds)
{
Console.WriteLine($"Search Completed in {milliseconds}ms");
}
Properties
Addresses- The range of IP Addresses to search. If not set, the addresses of the network that the host is connected to are usedPorts- The range of Ports to test on each reachable address. If not set, ports 5000 through 5019 are usedScanInterval- The Interval in Milliseconds to repeat the search at. If not set (0), the search is run onceTimeout- The timeout in Milliseconds used for the Port tests and the Probe requests. The default is 500SubsequentPingDelay- The delay in Milliseconds between ping requests. The default is 25
Events
PingSent/PingReceived- Raised for each Ping request that is sent and for each replyPortOpened/PortClosed- Raised with the result of each Port testProbeSent/ProbeSuccessful- Raised for each Probe request that is sent and for each one that returned an MTConnectDevices Response DocumentDeviceFound- Raised for each MTConnect Device that is foundSearchCompleted- Raised when a search has finished. Contains the duration of the search in Milliseconds
The
ProbeErrorevent is declared but is not currently raised.
Methods
Start()- Starts the search on a background thread. UseStart(false)to block the calling thread until the DeviceFinder is stoppedStop()- Stops the DeviceFinder
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 is compatible. net462 is compatible. net463 was computed. net47 is compatible. net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETFramework 4.6.2
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETFramework 4.7
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETFramework 4.7.1
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETFramework 4.7.2
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETFramework 4.8
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
.NETStandard 2.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
net10.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
net6.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
net7.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
net8.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
-
net9.0
- MTConnect.NET-HTTP (>= 7.2.0.105)
- MTConnect.NET-XML (>= 7.2.0.105)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.2.0.105 | 68 | 11/21/2026 |
| 7.2.0.105-prerelease | 70 | 11/21/2026 |
| 7.2.0.103-prerelease | 73 | 11/20/2026 |
| 7.0.0.2-prerelease | 103 | 6/26/2026 |
| 6.9.0.2 | 393 | 10/16/2025 |
| 6.8.0 | 250 | 9/13/2025 |
| 6.7.0 | 284 | 6/22/2025 |
| 6.6.0 | 333 | 1/18/2025 |
| 6.5.1 | 253 | 12/3/2024 |
| 6.5.0 | 246 | 10/21/2024 |
| 6.4.7 | 283 | 8/21/2024 |
| 6.4.6 | 258 | 8/7/2024 |
| 6.4.5 | 299 | 8/2/2024 |
| 6.4.4 | 274 | 7/16/2024 |
| 6.4.3 | 279 | 6/14/2024 |
| 6.4.2 | 256 | 6/12/2024 |
| 6.4.1 | 277 | 5/17/2024 |
| 6.4.0 | 273 | 5/14/2024 |
| 6.3.2-beta | 191 | 5/2/2024 |
| 6.3.1-beta | 223 | 4/24/2024 |