You are here: Re: read ip and mac « HTML « IT news, forums, messages
Re: read ip and mac

Posted by Jonathan N. Little on 06/03/06 16:22

atoxic wrote:
> Hello,
> how can I read the MAC and IP from the browsing internet explorer,
> mozilla,...
> Using javascript, or any other simple language.
>
> I tried this, but it causes problems when using https and when using http a
> confirmation box is required by default.
>
> <html>
> <head>
> <title>WMI Scripting HTML</title>
>
> <script FOR="foo" EVENT="OnCompleted(hResult, pErrorObject,
> pAsyncContext)" LANGUAGE="JScript">

<snip>

Firstly, that script will *only* run on IE, 'JScript' is not JavaScript
but MS's proprietary version.

Secondly, client-side JavaScript you can get the remote hostname, but
not the IP I believe. The remote IP is accessible from server side,
thuse you would need PHP, Perl, Python or other such server-side
scripting Perl: $ENV{'REMOTE_ADDR'}, PHP: $_SERVER['REMOTE_ADDR']

Now the MAC address is something different all together. Not an expert
here but I believe MAC is not in the HTTP headers and it is not past by
the routers. That you mean it would only be visible if you and the
remote were on the same side of a router, i.e., on the same network
segment, intranet, a lan. If you are trying to use this for some kind of
verification/validation on the web I do not think the approach is
feasible. Better Username/Password .

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация