vibe-d / vibe.d

Official vibe.d development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the client's MAC address in Vibe

AlexanderZhirov opened this issue · comments

Is there a way to identify a client by MAC address when using the Vibe library?
The NetworkAddress structure does not provide such features. Or did I miss something?

As far as I know, there is no designated way to get the transport layer address from the socket API(s). There are platform, IP protocol and link layer specific ways by which you can determine the MAC address in limited cases, though, but those are outside of the scope of the library. You can try them by getting the socket descriptor with TCPConnection.fd/UDPConnection.fd.

Apparently, this direction does not suit me. Thank you very much for your help :)