|
-
Mar 16th, 2007, 06:11 PM
#1
Thread Starter
Hyperactive Member
How to extract Mac address from client?
Lets say I have a website or server software (for example Java Servlet website on Apache Webserver, or say my own FTP server I wrote).
How do I extract the MAC address of TCP/IP packets coming from a client trying to log on? Are there code examples for Java / C++ / .NET?
This is useful for security reasons, so I know that the user is logging in from the same location he or she usually logs in from.
"I like to run on treadmills, because at least I know I'm getting nowhere."
- Me
-
Mar 19th, 2007, 01:49 PM
#2
Re: How to extract Mac address from client?
There's really no way you can tell that the user is at the same location, only that he's using the same MAC address. Since the MAC address can be cloned, or the user can be using a portable NIC, it's very poor security. It's also bad practice to base anything on the user's physical location - where he is should be up to him, not up to you.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Apr 2nd, 2007, 08:51 PM
#3
Hyperactive Member
Re: How to extract Mac address from client?
 Originally Posted by capsulecorpjx
How do I extract the MAC address of TCP/IP packets coming from a client trying to log on? Are there code examples for Java / C++ / .NET?
you could use a java applet to get the MAC, but obviously not in an FTP scenario.
unless the remote user is on your lan (in the same subnet mask), it is impossible to get their MAC address!
the simple reason for this is that MAC addresses are not routed over TCP/IP!
sorry for the bad news.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|