Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pinging in c# (uwp)

Tags:

c#

uwp

pinging

I'm trying to create a universal windows platform c# program that includes a network map.

UWP c# doesn't include any built in pinging tools and system.net.pinging won't install. How can I ping using the windows.network.sockets namespace to find out what computers are on the network (and their MAC address, hostname and hopefully operating system).

like image 228
Avishai Dernis Avatar asked Aug 14 '26 07:08

Avishai Dernis


1 Answers

System.Net.Ping 4.0.0 Provides the System.Net.NetworkInformation.Ping class, which allows an application to determine whether a remote computer is accessible over the network.

Add the System.Net.Ping NuGet package to your project using

Install-Package System.Net.Ping -Version 4.0.0

in Package Manager Console

like image 181
Mohit S Avatar answered Aug 15 '26 21:08

Mohit S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!