I needed the latter one to whitelist my N86 on my home wifi network so thought of keeping the codes as reference for future use.

At the standby screen (idle position), just type in the following codes :

Bluetooth MAC address

*#2820#

WLAN MAC address

*#62209526#

I have tested the codes to be working on my Nokia N86 & N79.

It has been reported to work on E51 & E71 too.