title: How to save all ip addresses connected to the network in a text file
body: <p>I would like to create an alert software for employees without outsourcing for security reasons. I found a way to send alerts from cmd with msg command, I didn't test this code but I generated it from <a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/msg" rel="nofollow noreferrer">Microsoft</a> site, if there is any error please let me know</p>
  <pre><code>msg @allip.txt &quot;test&quot;
  </code></pre>
  <p>For IP list, I found a solution using <code>arp -a</code> using cmd but I have to clear the extra info in the file like this, the problem is that if I leave the extra info in the text the code doesn't work</p>
  <pre><code>Interface: 192.168.1.140 --- 0x3
    Internet Address      Physical Address      Type
    192.168.1.1           00-00-00-00-00-00     dynamic   
    192.168.1.61          00-00-00-00-00-00     dynamic   
    192.168.1.255         00-00-00-00-00-00     static    
    ...
  </code></pre>
  <p>Is there a way to save only the <strong>internet address</strong> table</p>