I was wondering if someone has any suggestions on how to solve a security problem I have right now.
I have a swing client, it asks for a username and password to login to the application. The java code uses the http protocol to send the username and password to the server. The problem is the user can run this swing app and login from anywhere. I only want them to login from a single computer, so I am trying to find out how I can tie the username and password to the MAC address or something like that and check all 3 on the server side.
posted 10 years ago
You can get the Mac address using external calls on Windows and Linux. Windows: "ipconfig /all" or Linux: "sbin/ifconfig". Then catch the result and parse out the Mac address, send it with your user/password.