Results 1 to 3 of 3

Thread: How to extract Mac address from client?

  1. #1

    Thread Starter
    Hyperactive Member capsulecorpjx's Avatar
    Join Date
    May 2005
    Location
    Renton, WA
    Posts
    288

    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

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    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

  3. #3
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: How to extract Mac address from client?

    Quote 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
  •  



Click Here to Expand Forum to Full Width