How to use PHP to obtain the computer name and Mac address based on the IP address and check whether the computer with the IP is online?
First of all, PHP is a server-side scripting language and can only run on the server, which determines that it cannot traverse customer data.
Secondly, according to the http protocol. The client sends a request, and the server responds after receiving it. It cannot actively access the client.
Again, the websoket protocol allows the establishment of a connection with the remote server through JS, allowing two-way communication. It should be possible. .