Can PHP obtain the MAC address of the client? Can PHP obtain the MAC address of the client? It's a client, not a server !! Share: Can PHP obtain the MAC address of the client?
Can PHP
An account is bound to a computer. My computer does not have a network. Can I use another person's network ??? Friends who are restricted from accessing the Internet have raised a problem: Are they restricted from accessing the internet? Is there any way to break through the block and continue surfing the internet? It is also possible to break through the blocking. Here I will talk about how to cleverly resolve the problem of binding IP addresses to MAC
Method 1:
Call the Windows doscommand to read the MAC address from the output:
Public static String getMACAddress (){
String address = "";String OS = System. getProperty ("OS. name ");If (OS! = Null OS. startsWith ("Windows ")){Try {String command = "cmd.exe/c ipconfig/all ";Process p = runtime.getruntime(cmd.exe c (command );BufferedReader br =New BufferedReader (New InputStreamReader (p. getInputStream ()));String line;While (line = br. readLine ()
Php obtains the mac address of the server and the mac address of the client.
For_linux_ OS ();} break; default: {$ this-> for_windows_ OS ();} break;} $ temp_array = array (); foreach ($ this-> result as $ value) {if (preg_match ("/[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]"
Linux background development of the students know, under Windows has xshell\securecrt such excellent SSH client software. Mac looked under, there are SecureCRT Mac version, the internet has cracked, trial for a while, a problem has not been able to solve--ssh link occasionally will be broken off. about this problem, first say Leby work environment: we are not dir
Git big platform (win/Linux/Mac) graphical interface client big summary, gitmacAbstract: This article introduces the graphical interface git client on various platforms (I have not used it all). You are welcome to add new software or use it ~ I. TortoiseGit-The coolest Interface to Git Version Control
TortoiseGit is a Git version of TortoiseSVN. TortoiseGit is us
Method 1: Use the class library that comes with. Net to directly obtain
Using system;
Running result:Name: lenovo-05d886ffMAC address: 00: 26: 22: 05: 8c: C7
Note: After uploading to the server for testing, we find that the MAC address of the server is obtained.
Method 2: obtained through the Win32 featureAdvantage: you do not need to set it on the client;Disadvantage: the
Using JS to obtain the IP address and MAC of the IE client does not seem to be able to do B/S structure of the system, we often need to obtain some client information, such as IP and MAC, for identity authentication. In ASP. NET, it is easy to get the MAC address of the serv
Javascript obtains the MAC address, IP address, and computer name of the client Nic.In a B/S system, we often need to obtain some information about the client, such as IP and MAC, for identity authentication. It is easy to obtain the MAC address of the server, but it takes t
Use JavaScript to obtain the IP address and MAC address of the IE Client
In a B/S system, we often need to obtain some information about the client, such as IP and Mac, for identity authentication. In ASP. net, it is easy to get the MAC address of the server, but it is real
A few days ago, someone asked me how to get the MAC address of the client in ASP. NET. I didn't think much about it at the time. I gave him a piece of code, as shown below:
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[DllImport ("Iphlpapi. dll")]
Private static extern int SendARP (Int32 dest, Int32 host, ref Int64
Php obtains the mac address of the server and client to obtain the mac address of the server lt ;? Php ** obtains the original MAC address of the NIC. Currently, the physical (MAC) address of the NIC can be obtained in WINLINUX ** classGetmacAddr {var $ resultarray (); retu
From: amxku.net
At first, I thought that php could completely obtain the mac of the client, which is ridiculous. Finally, it was despised by yunshu.
This is totally impossible. Php cannot directly obtain the mac of the client.
First, php is completely interpreted and executed on the server, so it is impossible to di
In a B/S system, we often need to obtain some information about the client, such as IP and MAC, for identity authentication. In ASP. NET, it is easy to get the MAC address of the server, but it is really easy to get the MAC address of the client. The common practice is to ca
In a B/S system, we often need to obtain some information about the client, such as IP and MAC, for identity authentication. It is easy to obtain the MAC address of the server, but it takes too much effort to obtain the MAC address of the client. The common practice is to ca
In a B/S system, we often need to obtain some information about the client, such as IP and Mac, for identity authentication. In ASP. net, it is easy to get the MAC address of the server, but it is really easy to get the MAC address of the client. The common practice is to ca
In a B/S system, we often need to obtain some information about the client, such as IP and Mac, for identity authentication. In ASP. net, it is easy to get the MAC address of the server, but it is really easy to get the MAC address of the client. The common practice is to ca
In the B/s structure of the system, we often need to obtain some information on the client, such as IP and Mac, in conjunction with authentication. In ASP.net, it's easy to get a server-side Mac, but it takes a lot of effort to get the MAC address of the client, usually by c
In the B/s structure of the system, we often need to obtain some information on the client, such as IP and Mac, in conjunction with authentication. Getting a server-side Mac is easy, but getting the client's MAC address takes a lot of effort, usually by calling Win32API or calling the nbtstat command directly, which ha
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.