Click here to Skip to main content
12,748,873 members (37,727 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#2.0 C#
Hello,I need to get the information of my System by writing C# code ,Like when I type ipconfig/all in C:\windows\System\cmd.exe
I need to find my
IP address
MAC Address
Serial Number of my computer.
Posted 20-Apr-12 21:59pm
Updated 7-Sep-16 22:26pm
v2
Comments
Amul V V Wayangankar 21-Apr-12 3:51am
   
Thanks Abhinav.
serial number you are looking for is for Mother board,Hard Disk.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
VJ Reddy 23-Apr-12 19:49pm
   
Good references. +5
Abhinav S 23-Apr-12 23:15pm
   
Thank you VJ.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Here's an updated article explaining how to get the local machine's MAC address in C#:
Get local machine's MAC address in C#[^]
  Permalink  
Comments
Richard MacCutchan 8-Sep-16 6:19am
   
And this one four years ago. Please do not search old questions just so you can post something in them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 8 Sep 2016
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100