vibe-d/vibe.d

How to get the client's MAC address in Vibe

AlexanderZhirov opened this issue · 2 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 :)