how to get mac address of external IP in C#

后端 未结 4 1035
再見小時候
再見小時候 2021-01-21 00:39

how to get mac address of external IP in C# ? E.g I want to find mac address of \"204.13.153.34\" ?

Any ideas and code snippet is highly appreciated ? Thanks in Advance<

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-21 01:30

    I don't think that's possible unless you write something on the other end that sends it to you?

    EDIT:

    This looks like it might be able to help Retrieve MAC Address

    EDIT: You cannot get an external MAC address of a user without having local LAN access to them... UNLESS: you have access to a good ARP table and only if the client is connected DIRECTLY to the php server (if there are routers/gateways that NAT the traffic, the returned MAC address will be that of the gateway) - Source

    It talks about php but the principal will be the same for C#

提交回复
热议问题