Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread 中和刘
On Wed, Nov 19, 2008 at 9:20 PM, Ron Johnson [EMAIL PROTECTED] wrote:
 On 11/19/08 07:06, 中和刘 wrote:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

 IP packets don't contain the MAC address.  You'd have to run some
 asynchronous arp ping against the IP address.
i heard that arp ping only get the mac address on the LAN, it cannot
get mac address outside the LAN.
 (Why do I get the feeling that some Chinese Government rule is behind this
 request?)
no, I'm not a member of chinese government, I just want to provide
better service in my website :)

 --
 Ron Johnson, Jr.
 Jefferson LA  USA

 If you don't agree with me, you are worse than Hitler!!!


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject
 of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





-- 
Welcome to visit my home page http://www.starliu.com
[It's only accessable when my pc is turned on, on which it's hosted.]


Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Aioanei Rares
On Wed, Nov 19, 2008 at 3:06 PM, 中和刘 [EMAIL PROTECTED] wrote:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

 --
 Welcome to visit my home page http://www.starliu.com
 [It's only accessable when my pc is turned on, on which it's hosted.]


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]


Well, if the visitor uses DHCP, then his IP will change at some point, so
one cannot
tell the MAC if one knows the IP...however, there are tools like wireshark
that can help you
with MAC's.


Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread 中和刘
2008/11/19 Aioanei Rares [EMAIL PROTECTED]:


 On Wed, Nov 19, 2008 at 3:06 PM, 中和刘 [EMAIL PROTECTED] wrote:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

 --
 Welcome to visit my home page http://www.starliu.com
 [It's only accessable when my pc is turned on, on which it's hosted.]


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]


 Well, if the visitor uses DHCP, then his IP will change at some point, so
 one cannot
 tell the MAC if one knows the IP...however, there are tools like wireshark
 that can help you
 with MAC's.

thanks, i will try the tool


-- 
Welcome to visit my home page http://www.starliu.com
[It's only accessable when my pc is turned on, on which it's hosted.]


Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Raj Kiran Grandhi

中和刘 wrote:

On Wed, Nov 19, 2008 at 9:20 PM, Ron Johnson [EMAIL PROTECTED] wrote:

On 11/19/08 07:06, 中和刘 wrote:

when a user visit my website, it's easy to get the ip address of the
user, but i think IP address is not as stable as mac address, so I
hope I can get the mac address of the user according to its IP
address, is it possible? thanks

IP packets don't contain the MAC address.  You'd have to run some
asynchronous arp ping against the IP address.

i heard that arp ping only get the mac address on the LAN, it cannot
get mac address outside the LAN.

(Why do I get the feeling that some Chinese Government rule is behind this
request?)

no, I'm not a member of chinese government, I just want to provide
better service in my website :)


I guess most sites just use cookies for this purpose.




--
Ron Johnson, Jr.
Jefferson LA  USA

If you don't agree with me, you are worse than Hitler!!!


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject
of unsubscribe. Trouble? Contact [EMAIL PROTECTED]









--

If you can't explain it simply, you don't understand it well enough.
   -- Albert Einstein


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Ron Johnson

On 11/19/08 07:27, 中和刘 wrote:

On Wed, Nov 19, 2008 at 9:20 PM, Ron Johnson [EMAIL PROTECTED] wrote:

On 11/19/08 07:06, 中和刘 wrote:

when a user visit my website, it's easy to get the ip address of the
user, but i think IP address is not as stable as mac address, so I
hope I can get the mac address of the user according to its IP
address, is it possible? thanks

IP packets don't contain the MAC address.  You'd have to run some
asynchronous arp ping against the IP address.

i heard that arp ping only get the mac address on the LAN, it cannot
get mac address outside the LAN.


Hmmm.  Looks like you're right.


(Why do I get the feeling that some Chinese Government rule is behind this
request?)

no, I'm not a member of chinese government, I just want to provide
better service in my website :)


I was thinking more of government regulation.

--
Ron Johnson, Jr.
Jefferson LA  USA

If you don't agree with me, you are worse than Hitler!!!


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Ron Johnson

On 11/19/08 07:16, Aioanei Rares wrote:
[snip]


Well, if the visitor uses DHCP, then his IP will change at some point, so
one cannot
tell the MAC if one knows the IP...however, there are tools like wireshark
that can help you with MAC's.


How, if IP packets don't contain the source MAC?

--
Ron Johnson, Jr.
Jefferson LA  USA

If you don't agree with me, you are worse than Hitler!!!


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Jochen Schulz
中和刘:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

No, it's not possible. Ethernet frames aren't routed on the internet.
You cannot even be sure that your users connect using Ethernet on their
end.

Usually, HTTP-cookies are used as a solution for your problem.

J.
-- 
Television advertisements are the apothesis of twentieth century culture.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Ron Johnson

On 11/19/08 07:06, 中和刘 wrote:

when a user visit my website, it's easy to get the ip address of the
user, but i think IP address is not as stable as mac address, so I
hope I can get the mac address of the user according to its IP
address, is it possible? thanks


IP packets don't contain the MAC address.  You'd have to run some 
asynchronous arp ping against the IP address.


(Why do I get the feeling that some Chinese Government rule is 
behind this request?)


--
Ron Johnson, Jr.
Jefferson LA  USA

If you don't agree with me, you are worse than Hitler!!!


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread 中和刘
On Wed, Nov 19, 2008 at 9:50 PM, Jochen Schulz [EMAIL PROTECTED] wrote:
 中和刘:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

 No, it's not possible. Ethernet frames aren't routed on the internet.
 You cannot even be sure that your users connect using Ethernet on their
 end.
thanks, i will give up

 Usually, HTTP-cookies are used as a solution for your problem.

 J.
 --
 Television advertisements are the apothesis of twentieth century culture.
 [Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkkkGbwACgkQ+AfZydWK2zmkRwCgr+B1A4G2tLb0n1lRbGJXhyIM
 suIAn03CUuV3MD8PRjfdEnURYh62jC6k
 =4cbC
 -END PGP SIGNATURE-





-- 
Welcome to visit my home page http://www.starliu.com
[It's only accessable when my pc is turned on, on which it's hosted.]


Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Micha
On Wed, 19 Nov 2008 21:06:13 +0800
中和刘 [EMAIL PROTECTED] wrote:

 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks
 



It's not possible. You can only get mac addresses using arp on the local lan.
You can't even be sure that you got a correct ip address if your users are
going through a proxy or nat.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread owens



 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: how to get the mac address(network card physical
address) of a remote computer by its IP address?
Date: Wed, 19 Nov 2008 15:16:34 +0200

On Wed, Nov 19, 2008 at 3:06 PM, ??? [EMAIL PROTECTED]
wrote:

 when a user visit my website, it's easy to get the ip address of
the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

 --
 Welcome to visit my home page http://www.starliu.com
 [It's only accessable when my pc is turned on, on which it's
hosted.]


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]


Well, if the visitor uses DHCP, then his IP will change at some
point, so
one cannot
tell the MAC if one knows the IP...however, there are tools like
wireshark
that can help you
with MAC's.

AFAIK the MAC address is only available within a single network. 
Once the packet leaves the net as an IP packet all knowledge of the
MAC disappears.  Also wireshark (PKA Ethereal) is designed to do
packet analysis by sniffing on a single net (usually by putting the
computer on which wireshark is hosted in promiscuous mode).  This
doesn't work outside the originater's net
Larry




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to get the mac address(network card physical address) of a remote computer by its IP address?

2008-11-19 Thread Nelson Castillo
On Wed, Nov 19, 2008 at 8:06 AM, 中和刘 [EMAIL PROTECTED] wrote:
 when a user visit my website, it's easy to get the ip address of the
 user, but i think IP address is not as stable as mac address, so I
 hope I can get the mac address of the user according to its IP
 address, is it possible? thanks

No. It is not possible unless you're on the same physical network.