Hi

>> For computers in the local network you could execute "ping ip", and then
"arp -a", and parse the result. Or you could look for an Java ARP
implementation, there are some of them on the internet, but are not very
simple to use.

Correct but HOW via a JSP at run time ....


With regards
Karthik

-----Original Message-----
From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2008 5:57 PM
To: Tomcat Users List
Subject: Re: Browser Limited web application

Peter Crowther wrote:
>> From: karthikn [mailto:[EMAIL PROTECTED]
>> Question 2:  How to fetch the MAC address (Physical address) of
>>                   the clients using web application  ?
>
> You can not do this at the server.  Some clients may not even have one - a 
> computer with no network card using a dial-up modem to access the Internet 
> has no MAC address.  If you look at the OSI 7-layer model, the MAC address 
> exists in some Datalink (layer 2) implementations, but need not exist on all.
>
> If you really, *really* need the MAC address, you would have to write a piece 
> of code to download to the client computer and run on the client computer to 
> get it.  I suspect most anti-malware programs would recognise that software 
> as spyware and stop it running.

In other words, you can only get the mac address from the computers in
LAN. Everything that comes outside your LAN does not have mac address.

For computers in the local network you could execute "ping ip", and then
"arp -a", and parse the result. Or you could look for an Java ARP
implementation, there are some of them on the internet, but are not very
simple to use.

Regards,
Ognjen

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to