PHP gets client Mac with IP address JS code embedding failed

Source: Internet
Author: User
PHP gets client mac and IP address JS code embedding failed
After a variety of Baidu, a variety of search, came to the conclusion that PHP code can only obtain the server Mac, unable to obtain the client MAC,IP address can only obtain the client extranet IP, can not obtain the actual network IP (192.168.1.***)

So turn to use JS method, copy the online search procedures, seemingly everyone use the following method, but there are two deadly problems.

1. html files can be run directly to get Mac and IP address, but only in IE browser, and need to get user license to run ActiveX control, Google, Firefox, Safari simply can not respond.

2, the inside of the JS code embedded in PHP, the local localhost test always error (unrecognized, * * * is empty, etc.), upload to the server of course not.

Very headache, the first problem estimate can not be solved, the second problem may be my own reason, there is no PHP page with localhost debugging success?


<title>WMI Scripting HTML</title>





















------to solve the idea----------------------
Wrong, sorry.
------to solve the idea----------------------
Dead heart, landlord Baidu Google a half-day, is to understand PHP and JS where to run.
------to solve the idea----------------------
References:
references:
Forget it.


Is there no way to implement this function? If it's not possible, I'll stick it out and think of another way
.

Knot immediately.
Write browser plugin write desktop CS program
------to solve the idea----------------------
PHP only runs on the server side. is not able to get the client's stuff
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.