how is mac address code example Example 1: find your computer mac address type on command -> ipconfig/all Example 2: display mac address on cmd ipconfig/all