Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8328609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:29:57+00:00 2026-06-09T01:29:57+00:00

OK so i was using MAC address as a unique identifier , all went

  • 0

OK so i was using MAC address as a unique identifier , all went good until i activated a VPN and the mac address changed…..

So, i have 2 options:

1) Get the MAC Address of the actual physical network card

For mac address i found several tips on how to achieve this:

  • Link1
  • Link2

2.) Get the motherboard ID and use that instead, and hope we dont get 2 computer with same id( is that possible? )

public String getMotherBoardID()
{
    String serial = "";
    try
    {
        ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT SerialNumber FROM Win32_BaseBoard");
        ManagementObjectCollection moc = mos.Get();

        foreach (ManagementObject mo in moc)
        {
            serial = mo["SerialNumber"].ToString();
        }
        return serial;
    }
    catch (Exception)
    {
        return serial;
    }
}

What do you say? Should i try to dig and find code that gets the mac address from the card and not the virtual ones, or should i just switch to motherboard? And i don’t need to combine anything, i just need something that is not going to change so easily on the targeted computer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T01:29:59+00:00Added an answer on June 9, 2026 at 1:29 am

    I think an approach similar to the following would be as secure as it can get

    1. you give the user a license key for the software, tied to e.g. customer’s name or company
    2. user inputs this data in the program
    3. each time the program is fired, it “phones home” sending licensing info
    4. if license is verified (by your system) to be valid, the software would receive back some data which actually make it able to function. Otherwise it wouldn’t work no matter what (some parts would be missing).

    An example (i’m thinking C# from now on) of not being able to run unless it’s licensed, would be to make some fundamental method extern. You’ll send the required assembly in response to a valid license, or fallback to a “Gotcha!” warning.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using NetworkInterface class to get the MAC address but i am getting
Possible Duplicates: Getting Machine’s MAC Address — Good Solution? How do I get the
Hi i'm using this method for get the mac address public string GetMACAddress() {
I want to accesss the mac address of the computer using c#. I have
I'm trying to send ethernet packet to choosed destination MAC address using jPcap :
I am obtaining the mac(hw) address of an interface using CWNetwork. Now OS X
I'm trying to get the MAC address for the network adapter of the user's
Is it possible to restrict access to a website in IIS7 using MAC address
I am working on Ubuntu. How can I get MAC address of my machine
Background I'm trying to get obtain a unique identifier out of a computer and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.