Kbase P65100: How do I validate client machine's MAC address with WebSpeed?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/09/2008 |
|
Status: Verified
GOAL:
How do I validate client machine's MAC address with WebSpeed?
GOAL:
How do I get client machine's IP address from WebSpeed?
GOAL:
How do I uniquely identify a client's machine from WebSpeed?
GOAL:
How to guarantee the uniqueness of a client machine on a Web application?
FACT(s) (Environment):
WebSpeed 3.x
Windows
Progress 9.x
OpenEdge 10.x
FIX:
CGI environment remote_addr can be used to check client's IP.
However, if you are using DHCP, the IP of the machine dynamically changes, getting client's IP can not guarantee unique identification of the machine. Getting client machine's hostname or MAC (Media Access Control ) address might be necessary.
The are 2 solutions/workarounds :
1. After getting IP, use INPUT THROUGH "nslookup <IP>" .
The advantage is that this is on the agent.
OR
2. Have VBScript or JavaScript code running on the client to obtain MAC address, then pass MAC to the server with the POST/GET request.
An example for VBScript can be found at:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=29670&lngWId=1
Implement the sample script in the WebSpeed application.