How to ping faster when I reach unreachable IP?

前端 未结 5 1393
抹茶落季
抹茶落季 2020-12-16 22:15

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

5条回答
  •  半阙折子戏
    2020-12-16 23:16

    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).

    I suggest you use the overload taking an IPAddress instead.

提交回复
热议问题