How can I get the MAC and the IP address of a connected client in PHP?

前端 未结 16 2349
长发绾君心
长发绾君心 2020-11-22 02:29

I need to know the MAC and the IP address of the connect clients, how can I do this in PHP?

16条回答
  •  甜味超标
    2020-11-22 02:50

    I don't think you can get MAC address in PHP, but you can get IP from $_SERVER['REMOTE_ADDR'] variable.

提交回复
热议问题