Do you need to access Network Adapter information from your Delphi applications? Detecting the available network adapters information is no longer a challenging task. MiTec’s System Information Management Suite’s component helps to detect the network adapters easily, and we will learn how to use TMiTeC_Network and TMiTeC_TCPIP components in this blog post.
Platforms: Windows.
Installation Steps:
You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.
- Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
- Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
- It will download the plugin and installs it. Once installed Click Restart now.
How to run the Demo app:
- Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi17
- Open the IntfList project in RAD studio 10.4.1 compile and Run the application.
- This Demo App shows how to detect the Network Adapters and its properties such as Interface, IPAddress, MACAddress etc.
Components used in MSIC IntfList Demo App:
- TMiTeC_Network: Retrieves network environment information. Using this component, we can access Network resources and WinSock properties.
- TMiTeC_TCPIP: Enumerates network adapters, their properties and network configuration.
- TListView To list down the list of detected TCPIP Network Adapters.
Implementation Details:
- An instance FNetwork of TMiTeC_Network is created. Loop through the TCPIP.AdapterCount property to detect the available network adapters. For each TCPIP.Adpater record list down the properties such as Interface Name, IPAddress, IPAddressMask, Address, Typ, OperStatus, AdminStatus, Speed in the list view.
- On Double clicking a selected row, the interface properties were shown in the child form.
It’s that simple to enumerate a list of network adapters and their properties available on your machine from your Delphi application. Use this MiTeC component suite and get the job done quickly.
With the use of a Windows IDE, you can easily detect the network adapters in your windows apps with a component suite. Try your Free Trial here.