Results 1 to 5 of 5
Thread: Reading MAC Adresses.
- 04-19-2010, 01:05 PM #1
Reading MAC Adresses. [SOLVED]
Hi guys,
I need to be able to read Mac addresses from a website as soon a user has logged in. Wich classes can i use for that? Or maybe a better question... Wich one is the best?
Thanks in advance,
DieterLast edited by Dieter; 04-19-2010 at 04:07 PM.
Programming today is a race between software engineers striving to build bigger and better idiot proof programs,and the Universe trying to produce bigger and better idiots...
- 04-19-2010, 02:27 PM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
Which version? In Java SE 6, there is java.net.NetworkInterface.
Be careful of your assumptions here. MAC addresses are easily spoofed, and Internet connections are often shared, so a MAC address does not guarantee a unique host, let alone a unique session.
-Gary-
- 04-19-2010, 02:41 PM #3
Thanks for the reply Gary.
The point of the mac registration is that users can only use 1 computer for using the website. So they need to register another computer to use the same account. I will also have a look at the java.net.NetworkInterface.
PS: The registerd mac adres will be saved in an SQL DB.
Best regards,
DieterProgramming today is a race between software engineers striving to build bigger and better idiot proof programs,and the Universe trying to produce bigger and better idiots...
- 04-19-2010, 03:05 PM #4
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
MAC address will not do that for you. One MAC address is not equivalent to one computer. For instance, there could be twenty, fifty, a hundred PCs behind a firewall, and you'll see them all as the same MAC address -- the MAC address of the firewall. Also, one computer often has more than one network adapter (wired and Wi-Fi, for instance) and therefore more than one MAC address. And as I said, it is trivially easy to change the MAC address that a web site will see. Therefore, checking the MAC address will not enable you to enforce the restriction you want. You will frustrate your legitimate users, and you will not even slow down people who want to break your rules.
There is really no simple way to do what you want to do, and even if you could do it, the workarounds are numerous and well-known. Don't waste your time trying.
-Gary-
- 04-19-2010, 04:02 PM #5
Alright Gary. Thank you for the information and the tips. I will have to find another way to do this then.
Again thank you for your time.
Best Regards,
DieterProgramming today is a race between software engineers striving to build bigger and better idiot proof programs,and the Universe trying to produce bigger and better idiots...
Similar Threads
-
Reading .txt files
By cvcs1 in forum New To JavaReplies: 3Last Post: 01-20-2010, 09:07 AM -
Reading and Writing to XML - Help Please!
By JonnySnip3r in forum New To JavaReplies: 4Last Post: 01-17-2010, 10:55 PM -
reading from a .txt
By Flamespewer in forum New To JavaReplies: 1Last Post: 09-14-2009, 08:35 AM -
problem with reading excel sheet data reading using poi libraries
By sandeepsai17 in forum New To JavaReplies: 5Last Post: 08-21-2009, 11:03 AM -
Ip adresses comparison
By ModestUrgell in forum New To JavaReplies: 0Last Post: 05-30-2008, 12:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks