{"id":23329,"date":"2022-04-05T19:54:40","date_gmt":"2022-04-05T18:54:40","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=23329"},"modified":"2022-04-05T19:54:40","modified_gmt":"2022-04-05T18:54:40","slug":"windows-batch-scan-subnet-with-ping-and-for-loop","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/23329\/windows-batch-scan-subnet-with-ping-and-for-loop\/","title":{"rendered":"Windows Batch: Scan subnet with Ping and For loop"},"content":{"rendered":"<p>Quick tip for Windows users, ping a range of addresses using a For loop.<\/p>\n<p><!--more--><\/p>\n<p>With an IP scanner it is easy to find <a href=\"https:\/\/ekiwi-blog.de\/23301\/ip-adresse-von-netzwerkgeraeten-finden-z-b-fritz-repeater\/\" target=\"_blank\" rel=\"noopener\">devices on the network<\/a>.<\/p>\n<p>However, it is not always possible to install such software, e.g. on company computers. One, somewhat slower variant with batch file:<\/p>\n<pre>\r\nfor \/l %%i in (1,1,255) do ping -n 1 192.168.72.%%i\r\n<\/pre>\n<p>The ping command pings the range 192.168.72.1 to 192.168.72.255 with <a href=\"https:\/\/www.youtube.com\/watch?v=jr0JaXfKj68\" target=\"_blank\" rel=\"noopener\">one ping<\/a> at a time. <\/p>\n<p>The values in brackets specify the parameters for the For loop, 1,1,255 means: from 1, in steps of 1 to 255.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/04\/ping_loop.png\" alt=\"\" width=\"1113\" height=\"622\" class=\"aligncenter size-full wp-image-23326\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/04\/ping_loop.png 1113w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/04\/ping_loop-300x168.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/04\/ping_loop-1024x572.png 1024w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/04\/ping_loop-768x429.png 768w\" sizes=\"auto, (max-width: 1113px) 100vw, 1113px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Quick tip for Windows users, ping a range of addresses using a For loop.<\/p>\n","protected":false},"author":1,"featured_media":23189,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1909,1558],"class_list":["post-23329","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-batch-en","tag-windows-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/23329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=23329"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/23329\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/23189"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=23329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=23329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=23329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}