且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何查找远程计算机的mac地址?

更新时间:2022-05-08 22:24:44

ja ***** @ hotmail .com (周杰伦)写了

新闻:6d ************************** @发帖.google.c om:
ja*****@hotmail.com (Jay) wrote in
news:6d**************************@posting.google.c om:
我需要编写一个程序来查找远程计算机的mac地址,这可能吗?如何?
I need to write a program to find mac address of a remote computer, is
this possible? How?




如果没有特定于平台的代码,你就无法做到这一点。

C语言不提供网络支持。


-

- 马克 - >

-



You cannot do this without platform-specific code which is off-topic here.
The C language does not provide networking support.

--
- Mark ->
--


Jay写道:

我需要编写一个程序来查找远程计算机的mac地址,这可能吗?怎么样?

I need to write a program to find mac address of a remote computer, is
this possible? How?




arp?


/ david


-

安德烈,一个简单的农民,只有一件事在他的脑海里沿着东墙悄悄地走了过来:''安德烈,蠕动......安德烈,蠕动......安德烈,蠕变。''

- 未知



arp?

/david

--
Andre, a simple peasant, had only one thing on his mind as he crept
along the East wall: ''Andre, creep... Andre, creep... Andre, creep.''
-- unknown


Jay写道:
我需要写一个程序来查找远程计算机的mac地址,这可能吗?怎么样?
I need to write a program to find mac address of a remote computer, is
this possible? How?




有可能,但你不需要写一个程序,因为

http://www.tcpdump.org


Jirka



It is possible, but you don''t need to write a program, since
there is http://www.tcpdump.org.

Jirka