ping with c#
C#
using System.Net.NetworkInformation;
public static bool PingHost(string nameOrAddress)
{
bool pingable = false;
Ping pinger = null;
try
{
pinger = new Ping();
PingReply reply = pinger.Send(nameOrAddress);
pingable = reply.Status == IPStatus.Success;
}
catch (PingException)
{
// Discard PingExceptions and return false;
}
finally
{
if (pinger != null)
{
pinger.Dispose();
}
}
return pingable;
}
Also in C#:
- Title
- c# clear list items
- Category
- C#
- Title
- unity 2d joystick controls
- Category
- C#
- Title
- make a list c#
- Category
- C#
- Title
- how to find a transform unity
- Category
- C#
- Title
- unity hide mouse
- Category
- C#
- Title
- eventos c#
- Category
- C#
- Title
- position eines fenster ändern visual studio
- Category
- C#
- Title
- debug.log
- Category
- C#
- Title
- C# type cast float to string
- Category
- C#
- Title
- roulette algorithm genetic algorithm
- Category
- C#
- Title
- autoresetevent
- Category
- C#
- Title
- how to detect if a key is pressed in c#
- Category
- C#
- Title
- ping with c#
- Category
- C#
- Title
- c# get every point in a line in matrix
- Category
- C#
- Title
- change partial view based on select asp.net core
- Category
- C#
- Title
- how to go to other forms in C#
- Category
- C#
- Title
- unity load scene
- Category
- C#
- Title
- c# getter setter
- Category
- C#
- Title
- c# find element in list of list
- Category
- C#
- Title
- c# timespan
- Category
- C#
- Title
- how to create a variable in C#
- Category
- C#
- Title
- whats a string
- Category
- C#
- Title
- unity ai wander script
- Category
- C#
- Title
- Failed to retrieve Firebase Instance Id
- Category
- C#
- Title
- find mongodb c# with task T
- Category
- C#
- Title
- winforms timer c#
- Category
- C#
- Title
- how to chagne rotation in unity
- Category
- C#
- Title
- how to add a gameobject
- Category
- C#
- Title
- c# code snippet template
- Category
- C#
- Title
- orderby make sunday last day c#
- Category
- C#
- Title
- functions unity
- Category
- C#
- Title
- how to find the type of a object c#
- Category
- C#
- Title
- reference to gameobject in different scene unity
- Category
- C#
- Title
- copy a list in c# unity
- Category
- C#
- Title
- c# create new object
- Category
- C#
- Title
- no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'
- Category
- C#
- Title
- unity set object scale
- Category
- C#
- Title
- unity 2d rotate towards direction
- Category
- C#
- Title
- how to make error sound c#
- Category
- C#
- Title
- C# get pc language
- Category
- C#
- Title
- c# making a folder wpf
- Category
- C#
- Title
- c# dictionaries
- Category
- C#
- Title
- automapper c# initialize error
- Category
- C#
- Title
- bind repeater to dictionary
- Category
- C#
- Title
- unity rotate object relative to camera
- Category
- C#
- Title
- unity fall damage c#
- Category
- C#
- Title
- Unity3d GPS code
- Category
- C#
- Title
- add new page to site c# programmatically
- Category
- C#
- Title
- c# list to string join
- Category
- C#
- Title
- unity gameobjects with tag
- Category
- C#
- Title
- open file in explorer c#
- Category
- C#
- Title
- unity calculate path
- Category
- C#
- Title
- loop gridcontrol devexpress c#
- Category
- C#
- Title
- how to add a componet to a gameobject throgh code unity
- Category
- C#
- Title
- convert array object to int[] c#
- Category
- C#
- Title
- unity transformer double en float
- Category
- C#
- Title
- while loop check condition c#
- Category
- C#
- Title
- how to initiate a varaible in cs
- Category
- C#
- Title
- c# typeof
- Category
- C#
- Title
- c# get foreground window
- Category
- C#
- Title
- c# listview
- Category
- C#
- Title
- what does gameobject.find return
- Category
- C#
- Title
- C# sprint key
- Category
- C#
- Title
- .net core identity get user id
- Category
- C#
- Title
- c# instantiate
- Category
- C#
- Title
- rotate to face direction
- Category
- C#
- Title
- blazor display validation message
- Category
- C#
- Title
- convert number of days into months c#
- Category
- C#
- Title
- unity c# is not equal to
- Category
- C#
- Title
- unity cancel invokerepeating
- Category
- C#
- Title
- change label text size wpf C#
- Category
- C#
- Title
- iphone
- Category
- C#
- Title
- leantween sequence
- Category
- C#
- Title
- unity connect to firebase
- Category
- C#
- Title
- c# new dictionary linq
- Category
- C#
- Title
- access object property C#
- Category
- C#
- Title
- viewBag as a list
- Category
- C#
- Title
- index in foreach c#
- Category
- C#
- Title
- computer
- Category
- C#
- Title
- c# get all inherited classes of a class
- Category
- C#
- Title
- how to get odd saturday in a month in c#
- Category
- C#
- Title
- how to get value from object in c#
- Category
- C#
- Title
- unity get all by tag
- Category
- C#
- Title
- C# Unknown column 'FundAllocation' in 'field list
- Category
- C#
- Title
- built in methods to order a list c#
- Category
- C#
- Title
- c# mailmessage set sender name
- Category
- C#
- Title
- c# to vb.net
- Category
- C#
- Title
- how to get the last element in an array in c#
- Category
- C#
- Title
- Int64
- Category
- C#
- Title
- in unity i want to destroy a gameobject when it hits the edge of the screen
- Category
- C#
- Title
- strtorime online
- Category
- C#
- Title
- response redirect new tab
- Category
- C#
- Title
- how to make a datatable in c#
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- find month number from date C#
- Category
- C#
- Title
- unity get component
- Category
- C#
- Title
- wpf datatrigger enum binding
- Category
- C#
- Title
- Net.ServicePointManager.SecurityProtocol .net framework 4
- Category
- C#
- Title
- c sharp tryparse
- Category
- C#
- Title
- c# remove time in datetime
- Category
- C#