Re: Which IP address belongs to which MAC address?



Hello,

for each IP pass its dotted value in the argument
NCB_CallName of NCBASTAT.
Then you will get the corresponding MAC address.

Regards
Heiner

<Erwin.Ahlers@xxxxxxxxxx> schrieb im Newsbeitrag
news:1164060723.542694.159360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I got all my IP addresses with the function gethostbyname(hostname),
where hostname is received with gethostname. That works well.
I get the MAC addresses with some netbios functions: NCBENUM, NCBASTAT
But is not the order of the received IP addresses identical to the
order of the MAC addresses?
Or is there another way to the my local values and which belongs to
which?

Regards
Erwin



.



Relevant Pages