Re: [web2py] its possible get mac address?

2015-11-06 Thread Carlos Cesar Caballero Díaz
With the linux arp comand you can get mac addreses from the system arp cache, something like this should work: import os import re mac_regex = re.compile(ur'(?:[0-9a-fA-F]:?){12}') tmp = os.popen("arp -a 10.15.84.20").read() mac = re.findall(mac_regex, tmp)[0] print mac Greetings. El

Re: [web2py] its possible get mac address?

2015-11-05 Thread Dave S
On Thursday, November 5, 2015 at 8:44:43 AM UTC-8, Fabiano Almeida wrote: > > Hi All! > > > Got it. If the server and client are on the same network, including the > web2py it is installed on the network server. How to get the mac address by > ARP? > > Looks like you want to investigate the

Re: [web2py] its possible get mac address?

2015-11-04 Thread Dave S
On Wednesday, November 4, 2015 at 11:58:07 AM UTC-8, Carlos Cesar Caballero wrote: > El 04/11/15 a las 14:30, Fabiano Almeida escribió: > > Hi! > > Web2py can obtain mac address from user? > > > Bassicly, the MAC address don't cross the routers, so, you can't get the mac address of a client

Re: [web2py] its possible get mac address?

2015-11-04 Thread Carlos Cesar Caballero Díaz
Bassicly, the MAC address don't cross the routers, so, you can't get the mac address of a client from a external network server, you only can get the MAC of the last router. You could do some tweak using ARP, but only if the client and server are in the same subnet. Greetings. El 04/11/15 a

[web2py] its possible get mac address?

2015-11-04 Thread Fabiano Almeida
Hi! Web2py can obtain mac address from user? Thanks in advance, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message