This assumes a lot about the remote host.  For one thing, you're
the MAC depends on the underlying network structure.  Might be ethernet.
What about ATM, token ring or FDDI?  Also some hosts, like multihomed Sun
boxes, don't always have unique MACs.  It only needs to be unique to it's
local network segment.

On Sat, 20 Nov 1999, Joe Lei wrote:

> Hi there
>
> Does anyone know how to get the MAC address from a client, if so, it can
> identify a client with the actual computer used instead of a DHCP assigned
> ip.
>
> Thanks
> ----- Original Message -----
> From: Martin Kuba <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 19, 1999 7:20 PM
> Subject: Re: How a servlet get IP of web client?
>
>
> > TeckSeng Tan wrote:
> > >
> > > Hi all,
> > >
> > > How does a Servelt get the IP of the web client or the proxy that he
> comes
> > > from?
> > >
> > > I know that such info is in fact logged into a file but how do I access
> it
> > > via servlet?
> >
> > RTFM:
> >
> > javax.servlet.ServletRequest.getRemoteAddr()
> >
> > Martin
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >    INET, a.s.                          Mgr. Martin Kuba
> > Kralovopolska 139                  e-mail: [EMAIL PROTECTED]
> >   601 12 Brno                      WWW: http://www.inet.cz/~makub/
> >  Czech Republic                    tel: +420-5-41242414/32
> > --------------------------------------------------------------------
> > PGP fingerprint = D8 57 47 E5 36 D2 C1 A1  C3 48 B2 59 00 58 42 27
> >  http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
> > --------------------------------------------------------------------
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to