Well, that sure is a lot simpler than parsing the IPConfig output! Is there a way to capture the MAC address this way as well?
uses {$IFDEF MSWINDOWS}Windows, WinSock,{$ENDIF} Should have a ; at the end instead of a , uses {$IFDEF MSWINDOWS}Windows, WinSock;{$ENDIF} James _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal