×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    39

    Retrieving Mac Address of Windows Phone

    Hi,,
    I have been working on windows phone platform since 2 months. I am working on Visual studio 2012 IDE and .Net Framework 4.5 . I would like to open a discussion on Mac Address . I have used DeviceExtendedProperties class to get the device unique ID. I would like to know whether the same class can be used to extract the mac address . If it is not possible , would you please tell me another method or API for retieving the mac address. Also I have found that ManagementClass can be used for getting the mac address. For that I have used System.Management namespace. But I am getting following error :
    Error: The type or namespace name 'Management' does not exist in the namespace 'System' (are you missing an assembly reference?)
    I couldn’t find System.Management dll in my environment. From where shall I download the dll file. Any kind of help would be greatly appreciated.

    thanks,
    Aswathy.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    548

    Re: Retrieving Mac Address of Windows Phone

    It's not possible on WP7 or WP8, http://stackoverflow.com/questions/1...-8-mac-address

    What are you trying to achieve?

    (Also, Windows Phone is not full .NET 4.5, it's a subset so not all APIs are available)

  3. #3
    Registered User
    Join Date
    Jul 2013
    Posts
    39

    Re: Retrieving Mac Address of Windows Phone

    Hi theorthernt,,

    Thanks for ur speedy reply . I want to know the mac address of windows phone 7 and 8. Gone through the site that u have mentioned. But I couldn't find any information on Mac Address. Using Management class API's in console application it was able to retrieve the physical address of the machine. So can we use this .exe(that was created in this console app) in windows phone application to get the mac address of device. Or is there any third party dll available , so that we can use functions like DLLImport to read the mac address . Please guide me regarding this.

    thanks in advance.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    548

    Re: Retrieving Mac Address of Windows Phone

    What do you want to get the Mac address for?

    It's NOT possible to make a WP7 or WP8 app that can retrieve the Mac address from the device.

  5. #5
    Registered User
    Join Date
    Dec 2012
    Location
    Zagreb, Croatia
    Posts
    73

    Re: Retrieving Mac Address of Windows Phone

    Quote Originally Posted by AbhinavPajnoo View Post
    Hi theorthernt,,

    Thanks for ur speedy reply . I want to know the mac address of windows phone 7 and 8. Gone through the site that u have mentioned. But I couldn't find any information on Mac Address. Using Management class API's in console application it was able to retrieve the physical address of the machine. So can we use this .exe(that was created in this console app) in windows phone application to get the mac address of device. Or is there any third party dll available , so that we can use functions like DLLImport to read the mac address . Please guide me regarding this.

    thanks in advance.
    It is not possible to reuse the code from the console application on the Windows Phone. Most of the APIs from .NET are not available for Windows Phone (it has capabilities similar to the Silverlight runtime) since Windows Phone is restricted to run all its application in sandbox on a different hardware.

    You can always vote for that feature to be added in the next version of Windows Phone: UserVoice - Provide more WiFi connection details such as signal strength, MAC address, etc.

Similar Threads

  1. retrieving IMSI number in windows phone
    By GKP_theDEVELEPOR in forum Windows Phone General
    Replies: 8
    Last Post: 2013-09-25, 10:07
  2. Retrieving external WLAN IP-address
    By jonitoiviainen in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2011-11-13, 06:33
  3. Retrieving the MAC address
    By patrickfrei in forum Symbian Networking & Messaging (Closed)
    Replies: 12
    Last Post: 2007-07-31, 17:37
  4. Retrieving Bluetooth Address on some phone didn't work.
    By juniar in forum Mobile Java General
    Replies: 3
    Last Post: 2007-06-04, 12:47
  5. Retrieving gateway IP address
    By siggipa in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2004-03-23, 17:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×