HI Guys;
How to get the machine address using php

Recommended Answers

All 3 Replies

There was a thread about this a couple of days ago, but am unable to find it. I suggest you do a search within this forum.

IP of the machine browsing your script: $_SERVER[REMOTE_ADDR]

If behind proxy (does not work always): $_SERVER['HTTP_X_FORWARDED_FOR']

If you are talking about the client Mac address, you can only do it on devices connected to your network, using php_exec()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.