By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Obtaining Server' Ethernet Card Mac Address

P: n/a
Hello,

I have a web application running on IIS,

What I wanna do is to obtain server's ethernet card's mac address in order
to use this address for licensing issues

I have developed my web app on

vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +

My web app can obtain this address ?

Any idea?

Thanks

Jun 13 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Peggy wrote:
Hello,

I have a web application running on IIS,

What I wanna do is to obtain server's ethernet card's mac address in order
to use this address for licensing issues

I have developed my web app on

vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +

My web app can obtain this address ?

Any idea?
See the documentation for GetPhysicalAddress at
http://msdn2.microsoft.com/en-us/lib...aladdress.aspx.
--
Tom Porterfield
Jun 13 '07 #2

P: n/a
Peggy wrote:
Hello,

I have a web application running on IIS,

What I wanna do is to obtain server's ethernet card's mac address in order
to use this address for licensing issues

I have developed my web app on

vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +

My web app can obtain this address ?

Any idea?

Thanks
Ah, another annoying method of licensing a product which only annoys the
legitimate users (if a NIC fails they now have a software licensing
problem to fix, great) and does nothing to thwart the people who really
want to use the app for free. Being new to C# I have to ask, does C#
really query the NIC to get the MAC address or does it just blindly
accept whatever the OS tells it? I ask since it is possible to change a
MAC address thus making MAC addressing for licensing basically useless
it seems.

Someone who has licensed it properly can publish the licensing
information (including their MAC) and someone else can set their NIC to
use that MAC and reuse the license.
Jun 14 '07 #3

P: n/a
They can do that if they know I use NIC's Mac Address for licensing,

If they dont know ?

When Installing, I will take MAC address, Hash it properly in my way, and
put in a table's field, Nobody will know the truth, Just me and God

:)

"Brandon McCombs" <no**@none.com>, haber iletisinde sunlari
yazdi:46**********************@roadrunner.com...
Peggy wrote:
>Hello,

I have a web application running on IIS,

What I wanna do is to obtain server's ethernet card's mac address in
order to use this address for licensing issues

I have developed my web app on

vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +

My web app can obtain this address ?

Any idea?

Thanks

Ah, another annoying method of licensing a product which only annoys the
legitimate users (if a NIC fails they now have a software licensing
problem to fix, great) and does nothing to thwart the people who really
want to use the app for free. Being new to C# I have to ask, does C#
really query the NIC to get the MAC address or does it just blindly accept
whatever the OS tells it? I ask since it is possible to change a MAC
address thus making MAC addressing for licensing basically useless it
seems.

Someone who has licensed it properly can publish the licensing information
(including their MAC) and someone else can set their NIC to use that MAC
and reuse the license.

Jun 14 '07 #4

P: n/a
That's an interesting idea :) Don't forget to take into account the
possibility of multiple NIC's. Also, what about if they have a card go bad?
Don't get me wrong...I think it's a good idea :), but there's always the
chance of someone figuring out your method and passing the knowledge around.

And since we now know about this, are you calling us "me" or "God"???? :)

"Peggy" <Pe***@aaa.aawrote in message
news:OU**************@TK2MSFTNGP06.phx.gbl...
They can do that if they know I use NIC's Mac Address for licensing,

If they dont know ?

When Installing, I will take MAC address, Hash it properly in my way, and
put in a table's field, Nobody will know the truth, Just me and God

:)

"Brandon McCombs" <no**@none.com>, haber iletisinde sunlari
yazdi:46**********************@roadrunner.com...
>Peggy wrote:
>>Hello,

I have a web application running on IIS,

What I wanna do is to obtain server's ethernet card's mac address in
order to use this address for licensing issues

I have developed my web app on

vs.net 2005 +
sql server 2005 +
SBS Server +
IIS 6.0 +

My web app can obtain this address ?

Any idea?

Thanks

Ah, another annoying method of licensing a product which only annoys the
legitimate users (if a NIC fails they now have a software licensing
problem to fix, great) and does nothing to thwart the people who really
want to use the app for free. Being new to C# I have to ask, does C#
really query the NIC to get the MAC address or does it just blindly
accept whatever the OS tells it? I ask since it is possible to change a
MAC address thus making MAC addressing for licensing basically useless it
seems.

Someone who has licensed it properly can publish the licensing
information (including their MAC) and someone else can set their NIC to
use that MAC and reuse the license.

Jun 14 '07 #5

P: n/a
On Thu, 14 Jun 2007 05:18:33 -0700, Peggy <Pe***@aaa.aawrote:
They can do that if they know I use NIC's Mac Address for licensing,

If they dont know ?

When Installing, I will take MAC address, Hash it properly in my way, and
put in a table's field, Nobody will know the truth, Just me and God
How does that prevent the user from figuring out that you've used the MAC
address for licensing? All that prevents is them seeing the MAC address
where you've stored it. Some simple black-box testing will easily reveal
your use of the MAC address as a licensing scheme.

IMHO, Brandon's comments are right on the money. There is no need to use
the MAC address for a simple anti-piracy licensing scheme, and any
complicated anti-piracy licensing scheme, whether it uses the MAC address
or not, is very likely to do more to interfere with your own licensed
customers than it will to stop people who would not be stopped by a
simpler, more user-friendly scheme.

I understand the temptation to use copy-protection in your application,
but _any_ copy protection runs the risk of hurting your legitimate users,
and the more complicated the copy protection, the more likely they are
going to run into serious problems. Since there is _no_ copy protection
that will interfere with someone serious about pirating your software, it
stands to reason that the more complicated the copy protection, the less
likely you will have fairly balanced the needs of your customers with your
own interests.

Microsoft can get away with this sort of crap (see, "Product Activation),
because so many of their customers don't have a choice. Even they see a
certain amount of lost sales as a result. For whatever you're working on,
I doubt you have the sort of market clout that Microsoft has, and it will
be much easier for your customers to just give up and stop buying your
sofware.

So, if the question of how you treat your customers doesn't sway you, you
should at least consider what the total economic effect on you will be.

Pete
Jun 14 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.