- For the MAC address, you could parse the output of netstat -ie in Linux, or ipconfig /all in Windows. Client IP address. You can get the client IP from $_SERVER['REMOTE_ADDR'] Client MAC address. The client MAC address will not be available to you except in one special circumstance: if the client is on the same ethernet segment as the server.
- PVR clients; Stalker Client; Install; Stalker Client is an unofficial PVR Client Addon for Kodi to connect to Stalker Middleware Internet-based television (IPTV) provider Infomir, typically otherwise accessed through IPTV STBs such as Infomir MAG254/255 and others that support Stalker Middleware.
- Using kerbers 5.0.8 build for the m8 and stalker version 0.6b-h, did you change the last 3 sets of numbers for the MAC? As in the 00:00:00 to something like 06:34:63 or anything random? I also do not have the '/' after the address, doubt that matters tho.
Active30 days ago
I need to know the MAC and the IP address of the connect clients, how can I do this in PHP?
hakreSTALKER TV APP. How to set up a FTV Firestick for Unblockr. What You Need to Know About IPTV Stalker and How to Get it. IPTV Express APK For Mobile| Tablet. MAC Address Generator for IPTV Stalker. How to setup IPTV Stalker Plus foolproof. How to Reset/Change your Mac with IPTV Stalker for Kodi. HOW TO INSTALL NEW STALKER EMULATOR. Your Channels will start to Load in the TV Guide Section in Kodi if Stalker client fails to load and you get “Authentication Failed” error, reset Kodi settings to default and try entering all the information again carefully as provided.
164k3333 gold badges323323 silver badges637637 bronze badges
NeveenNeveen92533 gold badges1313 silver badges2222 bronze badges
12 Answers
Server IP
You can get the server IP address from
$_SERVER['SERVER_ADDR']
. Server MAC address
For the MAC address, you could parse the output of
netstat -ie
in Linux, or ipconfig /all
in Windows.Client IP address
You can get the client IP from
$_SERVER['REMOTE_ADDR']
Client MAC address
The client MAC address will not be available to you except in one special circumstance: if the client is on the same ethernet segment as the server.
So, if you are building some kind of LAN based system and your clients are on the same ethernet segment, then you could get the MAC address by parsing the output of
arp -n
(linux) or arp -a
(windows). Edit: you ask in comments how to get the output of an external command - one way is to use backticks, e.g.
But what if the client isn't on a LAN?
Well, you're out of luck unless you can have the client volunteer that information and transmit via other means.
Paul DixonPaul Dixon253k4242 gold badges288288 silver badges324324 bronze badges
The MAC address of a client (in the sense of the computer that issued the HTTP request) is overwritten by every router between the client and the server.
Client IP is conveniently provided to the script in
$_SERVER['REMOTE_ADDR']
. In some scenarios, particularly if your web server is behind a proxy (i.e. a caching proxy) $_SERVER['REMOTE ADDR']
will return the IP of the proxy, and there will be an extra value, often $_SERVER['HTTP_X_FORWARDED_FOR']
, that contains the IP of the original request client. Sometimes, particularly when you're dealing with an anonymizing proxy that you don't control, the proxy won't return the real IP address, and all you can hope for is the IP address of the proxy.
Michał Tatarynowicz![Stalker Stalker](/uploads/1/2/6/5/126574633/566483568.png)
74922 gold badges99 silver badges3131 bronze badges
I don't think you can get MAC address in PHP, but you can get IP from
RaYellRaYell$_SERVER['REMOTE_ADDR']
variable.45.9k2020 gold badges114114 silver badges146146 bronze badges
All you need to do is to put arp into diferrent group.
Default:
![Get Get](/uploads/1/2/6/5/126574633/809029191.jpg)
With command:
you will get:
And because apache is a daemon running under the user www-data, it's now able to execute this command.
So if you now use a PHP script, e.g.:
you will get the output of linux
Cosmin Pirvuarp -an
command.19.7k55 gold badges3535 silver badges5656 bronze badges
McJMcJ
SimosSimos
This is a PHP class for MAC address manipulation on top of Unix, Linux and Mac OS X operating systems. it was primarily written to help with spoofing for wireless security audits.
AliAli3,79822 gold badges1717 silver badges3636 bronze badges
In windows, If the user is using your script locally, it will be very simple : Oracle full client for mac.
MirtovMirtov
You can get MAC Address or Physical Address using this code
I used explode many time because shell_exec ('ipconfig/all') return complete detail of all network. so you have to split one by one. when you run this code then you will get
your MAC Address00-##-##-CV-12 //this is fake address for show only.
your MAC Address00-##-##-CV-12 //this is fake address for show only.
Pankaj KumarPankaj Kumar
You can use the following solution to solve your problem:
Grant Miller8,5921313 gold badges4747 silver badges7474 bronze badges
AbdulRahman AlShamiriAbdulRahman AlShamiri
This works for me on Windows, as
Kevin Guanipconfig /all
is Windows system command.14.7k1010 gold badges4444 silver badges7171 bronze badges
AshwinAshwin31911 gold badge55 silver badges1515 bronze badges
under linux using iptables you can log to a file each request to web server with mac address and ip.from php lookup last item with ip address and get mac address.
As stated remember that the mac address is from last router on the trace.
TexWillerTexWiller
You can do this easily using openWRT. If yo use a captive portal you can mix php and openWRT and make a relation between the IP and the mac.
You can write a simple PHP code using:
Later, using openWRT you can go to
/tmp/dhcp.leases
, you will get something with the form:There, you have the mac, the IP address and the hostname.
Bernat Pedrol VozmedianoBernat Pedrol Vozmediano
protected by Community♦Jan 11 '12 at 9:16
Get Mac Address Vista
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?