|
You can have multiple NICs with the same MAC on the same network, just not on the same segment hanging from a hub. Since most hubs have been replaced with switches, this really isn't a problem anymore. Each port on the switch is treated like it's on it's own segment. Only the machine connected to the port hears the signal. In the old hub environment, every machine connected to the hub heard the same signal making MAC's more important.
|
|
|
|
|
well, it is, unless it isn't.
it should be unique; each hardware manufacturer should acquire a range of MAC numbers, then take care to manufacture all different numbers within his range.
when two devices with identical MAC number sit in a single network, trouble is guaranteed.
FYI: you can spoof the MAC number easily on Windows systems; a tiny code snippet can replace the running MAC address by anything you like.
|
|
|
|
|
thanks for all ur replys
but the logic of my project is this
my project is a web based one
i should allow the user to the login from only one system not from multiple system (respective user id for respective system)
if he need to use in other system , he should register for a new userid
so what kind of information should i have to track so as to get this logic run
|
|
|
|
|
Can't be done. Even Microsoft can't identify a machine uniquely when the only thing they have is a http connection (I'm sure they'd love too). You could persuade the user to run some ActiveX control which would gather information on the system, and pass it back to you, but this will seriously limit your audience. (windows + IE, or FireFox maybe, no other browsers, no linux, no MAC, no Iphone, no nothing...). ActiveX used to be the single most widespread technology for easily installing viruses on client machines, so it has been banned from normal use, and now rots in IT Hell, where it belongs. ( Actually some vendors are still using it, but they shoudln't )
You could probably achieve the same thing with a Java applet which runs out of the sandbox, but that's the same evil. (and would require your clients to install Java, and allow it full access to their system. (Fat chance)
|
|
|
|
|
Sounds like you' re doing this in corporate environment?
The supported ways to do this are:
- getting the information from the user's profile. Every user has a profile, which is divided in a roaming part and a local part. The roaming part is stored on a server, and travels with the user when he moves from machine to machine. The local part is only stored on the machine to which he is logged on. You could store your checking information in the local profile part. This of course cannot be done using ASP.NET. You'll need some client (windows) components to talk to.
Note that if you're in a corporate environment, checking the dns name of the machine is just as efficient
- Use Silverlight 4 and local storage. You could store the userid in local storage on the user's machine. This will again require permission from the user.
- I think you can do the same with Flash, but you'll have to ask the Flash experts that.
NOTE that these are not fail-safe solutions. A determined user can still fiddle around with the data, and persuade you that he's on an another machine.
|
|
|
|
|
One way to do this (it's not foolproof as I'll explain in a moment) is to get the client IP. To do this, you can use Request.UserHostAddress() to retrieve the IP.
It's not perfect because the user may be logging into the same application from a separate instance of the browser on the same machine.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi, i am working on c# .net windows environment. While developing the application i realized that the application .exe that installs in Destination machine i.e C:\Program Files\Application Folder .. is easily DE-COMPILED By application like .Net Reflector.
My question that is it possible to the Application .exe so that it can't decompiled by reflector (or other software).Is the procedure to make it possible is simple or requires some Special Practices.
Thanks
|
|
|
|
|
The short answer to this very common question is no. You can't prevent a .net application or assembly from being decompiled. The best you can do is use an obfuscator to cloud the issue a bit.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
In one of my projects I have used the following technique:
some function bodies were encrypted, and the IL in it was decrypted on-the-fly, just before you enter into this function.
You can implement something like it too, it's not too hard.
Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.
|
|
|
|
|
Why don't you submit an article on this technique. I'm sure others would find it interesting.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
You can also try using a type name longer than 4096 characters, it messes with some reversing tools..
|
|
|
|
|
Are you a developer I would fall out with? Types with names longer than 4096 characters. It wouldn't just be decompilers it would mess with.
|
|
|
|
|
It wouldn't have to be in the source, just in the assembly
And the C# compiler sets a maximum length of 512 characters anyway..
|
|
|
|
|
Trying is generally not worth the trouble.
|
|
|
|
|
You can go for "WinLicense" software to protect and manage license of your .NET code.
See details from following link.
http://www.oreans.com/winlicense.php[^]
Hope this will help!
Jinal Desai
|
|
|
|
|
Hello guys!
Has anyone seen any SGML validator for .NET (or, maybe, a .NET wrapper for Windows OpenSP: http://openjade.sourceforge.net/[^])?
I've tried to find it but there was no result :(
I have managed to find only a wrapper for Tidy html validator but it's not what I'm looking for, it's another validator.
Thanks in advance.
Die Energie der Welt ist konstant. Die Entropie der Welt strebt einem Maximum zu.
|
|
|
|
|
I write to inquire about a knowledgebase or its equivalent for those interested in integrating .NET development with the ARC GIS mapping applications beyond the APIs. Much thanks for any informed guidance.
|
|
|
|
|
I've known about Generics for a while, but never really took the time to review. I've recently began taking a look at them and have been trying to determine when they should be used. It seems I can do the same things using inheritance. I was just wondering about everyone's opinion on this topic.
Do you prefer one technique over the other and why?
What scenario would a Generic be a better choice than an inherited class?
Thanks.
|
|
|
|
|
Generics and Inheritance are two completely different animals. Inheritance is of course used for OO where you can have a base class with some characteristics and actions that can be used in any derived classes. The classical example is and Animal base class and Cat or Dog derived classes.
Generics give you the ability to write one class or method that can execute actions in a generic way. For instance;
public class MathOperations
{
public T Add<T>(T x, T y)
{
return x + y;
}
}
In this case you can call Add with int, float, decimal, etc. and it will add the values together. Otherwise you would need to create an override for the Add method that takes, int, float, double, etc., much more coding.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Looks like a <T> got eaten by the hamsters
|
|
|
|
|
Guess Bob got hungry
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Can't compare one with other. Inheritance is used in Object Oriented Programming and Generic is used in Generic Programming. One can't replace the advantage of one with other.
Personally i perfer to use Generic for utility classes such as vector, array, map, list etc and inheritance for contract. What does it means, with the help of inheritance, i want to make sure that we uses the appropriate level of classes.
Take a look at the following example
class Building
{
}
class ResidentialBuilding : Building
{
}
class RentedResidentialBuilding : ResidentialBuilding
{
}
class ApartmentBuilding : RentedResidentialBuilding
{
}
class LuxaryApartmentBuilding : ApartmentBuilding
{
}
Now if i want to give some functionality of Apartment then i would do something like this
void ApartmentName(const ApartmentBuilding& apartment);
This way i will make contract, with the help of inheritance, that only apartment and its inherited class can be used with this function. We can't do exactly the same with Generic.
Similarly we can't do everything which generic offers with inheritance alone. The other answer already explained it.
|
|
|
|
|
|
Picture a bath. A conical bath. Film fine white sand running out of it. Now run the film backward.
|
|
|
|
|
I have a solution with 10+ projects. Most of the projects are 100% .net 2.0. However one of the projects references a .Net 3.0 DLL. The solution compiles fine in VS2008, but will not compile with VS2010, because of the mixed frameworks. We may be able to upgrade to .Net 3.5, but that will be later on. Has anyone else found a solution to this issue? Currently the solution is in VS2005.
GSC
|
|
|
|