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.