Get mac address for remote computer under NT4 in C

1.3k Views Asked by At

Is it possible to determine the MAC address of the originator of a remote connection under Windows NT 4? The remote PC opens a socket connection into my application and I can get the IP address. However I need to determine the MAC address from the information available from the socket such as the IP address of the remote device.

I have tried using SendARP but this doesn't seem to be supported in Windows NT4.

2

There are 2 best solutions below

0
On BEST ANSWER

Try GetIpNetTable. This function is documented as supported as of NT 4.0 SP4.

0
On

Hope the machine isn't too remote. MAC addresses will only be known for the local network (subnet).