Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get phone mac address

Status
Not open for further replies.

sysadmin42

Technical User
May 6, 2005
138
does anyone know a way to let a wap-website determine a phone's MAC address or at least have a way to uniquely identify the phone?

"Computer illiterate is a dirty word."
 
To the best of my knowledge, PHP does not have builtin functionality to do that. However, most, if not all, OSes on which PHP can run will have an [tt]arp[/tt] command that will, when passed an IP address, return a MAC address. You'll have to execute the [tt]arp[/tt] command externally to PHP.


Keep in mind, though, that MAC addresses will only be available for network entities on you LAN. If the connecting device crossed a router, the MAC adress of the device will not be available.



Want the best answers? Ask the best questions! TANSTAAFL!
 
I see. the reason I ask is that I am writing a program where you log into a website with your phone. However, logging in is a little cumbersome with a phone's keypad, so I want to figure out a quicker, more efficient way to allow access to a particular phone. any ideas?

"Computer illiterate is a dirty word."
 
quite a lot of phones accept cookies now.

from memory some wap gateways also provide an x-sub-number (essentially a gateway identifier) in the request header. but then not all networks make use of wap gateways anymore.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top