473,473 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Obtaining Server' Ethernet Card Mac Address

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
5 2515
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
0
by: Keith Bussey | last post by:
Hello all, After changing RAM and the ethernet card of my DB server, the problem of getting frequent: Database error (error code 102) Could not connect to database server (Lost connection to...
1
by: Ray Mitchell | last post by:
Hello, If I have several ethernet adaptors with different IP addresses on my system and do the following (or something similar to an arbitrary non-Internet IP address), how do I know or control...
8
by: Edison Abarca Tapia | last post by:
Hi: I need change MAC(nic) Address. I help me pleaseeeee... thanks, Edison
9
by: polkid | last post by:
I need some guidance here please! I need to write code to talk from a PC to a DAQ type of thing, and have there be a stream of data back and forth between them. I don't want to use TCP because I...
3
by: Bob Greschke | last post by:
There is a lot to stuff that seems to skirt around this issue (most of which has to do with finding your IP address), but I can't find anything that explains how to write a client that (in my case)...
1
by: eblackmo | last post by:
I have a test network consisting of four servers running windows 2003 server R2 SP2. I have set up a domain which functioned correctly for about a day and a half until the other servers decided they...
1
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.