File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Security problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Security problem" Watch "Security problem" New topic

Security problem

Jerry Crothers
Ranch Hand

Joined: Mar 06, 2001
Posts: 34
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.

Yuan Ye
Ranch Hand

Joined: Mar 05, 2003
Posts: 172
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.
subject: Security problem
It's not a secret anymore!