Click here to Skip to main content
11,645,087 members (71,843 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#2.0
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 20:59pm
Edited 20-Apr-12 21:03pm
Amul V V Wayangankar at 21-Apr-12 3:51am
Thanks Abhinav.
serial number you are looking for is for Mother board,Hard Disk.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

For IP address -[^].

For MAC -[^][^]

I'm not sure what serial number you are looking for i.e. motherboard, harddrive etc.
VJ Reddy at 23-Apr-12 19:49pm
Good references. +5
Abhinav S at 23-Apr-12 23:15pm
Thank you VJ.

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

  Print Answers RSS
0 OriginalGriff 700
1 494
2 Sergey Alexandrovich Kryukov 439
3 Afzaal Ahmad Zeeshan 404
4 CPallini 386
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 683
2 DamithSL 681
3 Afzaal Ahmad Zeeshan 662
4 CPallini 555

Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 21 Apr 2012
Copyright © CodeProject, 1999-2015
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