I have an app which pings IP or IP range. The problem is that when hosts are closed it takes longer to ping than they are open. When host is closed the time to ping is about
Your address is a string. Thus it will go via DNS first to see if this is possibly a hostname (even if it is an IP address).
string
I suggest you use the overload taking an IPAddress instead.
IPAddress