 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
BADBOY Guest
|
Posted: Mon Aug 23, 2004 2:31 am Post subject: Telling difference between 2 browser on different machines o |
|
|
Hi,
Is it possible to tell the difference between 2 browsers running on
different computers that share the same internet connection, that are
connected to my custom web server?
the java.net.InetAddress class that java.net.Socket returns just shows the
ip address of the connection, is there some way of getting the MAC address
from each computer through a Socket,or other class.
Have searched and read the manual but to no avail.
thanx,
John
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
|
|
| Back to top |
|
 |
Paul Lutus Guest
|
Posted: Mon Aug 23, 2004 5:09 am Post subject: Re: Telling difference between 2 browser on different machin |
|
|
BADBOY wrote:
| Quote: | Hi,
Is it possible to tell the difference between 2 browsers running on
different computers that share the same internet connection, that are
connected to my custom web server?
|
No, not from the server side. Software that is downloaded onto the browser
can do this. This is the key to having Web pages look the same on different
browsers -- they (and their code content) can examine the browser and
adjust themselves accordingly. But this is done locally, by code running on
the browser itself.
| Quote: | the java.net.InetAddress class that java.net.Socket returns just shows the
ip address of the connection, is there some way of getting the MAC address
from each computer through a Socket,or other class.
Have searched and read the manual but to no avail.
|
Please explain what problem you are trying to solve, not your proposed
solution.
--
Paul Lutus
http://www.arachnoid.com
|
|
| Back to top |
|
 |
Dhananjay Singh Guest
|
Posted: Mon Aug 23, 2004 11:51 am Post subject: Re: Telling difference between 2 browser on different machin |
|
|
Any program which is running inside a browser can't access the MAC
address. The browser never allow you to do so. I've even try lot of
tools (applets, active-x etc), which claims that they will pick the IP
address of the user, for this purpose. But all are useless. They give
the IP of the gateway or router etc. The http protocol of browser
never allows to provide these informations, as I know and experienced.
(Dhananjay Singh)
|
|
| Back to top |
|
 |
FISH Guest
|
Posted: Mon Aug 23, 2004 12:53 pm Post subject: Re: Telling difference between 2 browser on different machin |
|
|
"BADBOY" <badboy_boogey (AT) hotmail (DOT) com> wrote
| Quote: | Hi,
Is it possible to tell the difference between 2 browsers running on
different computers that share the same internet connection, that are
connected to my custom web server?
the java.net.InetAddress class that java.net.Socket returns just shows the
ip address of the connection, is there some way of getting the MAC address
from each computer through a Socket,or other class.
Have searched and read the manual but to no avail.
|
There is no sure-fire way of doing this, although in most circumstances
cookies will enable you to tell the browsers apart. Just hand out a
unique cookie to any browser which doesn't send one, and it will send
it right back with each subsequent request - assume cookies are enabled.
-FISH- ><>
|
|
| Back to top |
|
 |
BADBOY Guest
|
Posted: Mon Aug 23, 2004 3:11 pm Post subject: Re: Telling difference between 2 browser on different machin |
|
|
| Quote: | Please explain what problem you are trying to solve, not your proposed
solution.
|
When a browser connects to my web server, the server logs the connection in
a ConnectedClient class
any subsequent connections from same ip are logged in the same
ConnectedClient class.
This doesnt really come into its own till a user logs on with id and
password, then when all connections from the ConnectedClient class have
closed, the user is logged out. Also if the user makes a sensative request,
the ip is checked to see it came from the same one the user logged on with.
So if a user logs on from a shared connection and another user acceses my
site from the same connection,
either user wont be logged out till both have disconnected, or my server
detects that a users account hasnt been accessed for a determined period of
time. It also brings about security issues with the ip checking.
I was trying to avoid the use of cookies but looks like i may have to.
Hope i explained that alright(Not my strong point).
John
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|