Merkin
Merkin

Reputation: 23

Get mac address for remote computer under NT4 in C

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.

Upvotes: 2

Views: 1320

Answers (2)

Adam Mitz
Adam Mitz

Reputation: 6043

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

Upvotes: 0

Mike Dimmick
Mike Dimmick

Reputation: 9802

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

Upvotes: 1

Related Questions