B4J Question How do I get a MAC address of a computer (Windows/Linux)

Mashiane

Expert
Licensed User
Longtime User
Ola

I want to lock my ABM app to a particular MAC address of the computer that it will be running from. This means I need, when the app is starting to run, get the MAC address of the computer and then compare it to the built in MAC address on my app.

Is there a way for a B4J server app to read the MAC address?

Thanks in advance.
 

joulongleu

Active Member
Licensed User
Longtime User
Hi:Mashiane Try IP adress :
B4X:
ws.UpgradeRequest.RemoteAddress
Try MAC First use library jGetMac :
B4X:
Dim ti As jGetMac
MAC=ti.MacAddressFromClientjGetMac
 
Upvote 0
Top