<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bo Berglund via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Fr., 10. Sep. 2021, 09:41:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a way to enumerate the active adapters on a Windows computer with their<br>
IPv4 and MAC addresses?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">There is an API for that, but I don't remember that right now. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I am trying to convert a Linux reporting script to Windows, but I have a hard<br>
time finding a suitable Windows command. The script uses common Linux commands<br>
and tools to get the eth0 and wlan0 data (IPv4 and MAC addresses) and then to<br>
POST it to my website mailer (php script) via curl. See below.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can use the ipconfig command and parse its output (especially ipconfig /all).</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Sven </div></div>