Hello I created one balena app and I want to get the physical mac address from eth0 interface.
In order to get the mac I am using the native NodeJS method networkInterfaces from os .
Because of the virtual network that I have created in composer file the networkInterfaces return on eth0 a virtual address.
Can you help me how I can have access to the real one?
version: '2' volumes: resin-data: services: testApp: privileged: true build: ./testApp networks: vpcbr: ipv4_address: 10.5.0.3 testApp2: privileged: true build: ./testApp2 networks: vpcbr: ipv4_address: 10.5.0.4 networks: vpcbr: driver: bridge ipam: config: - subnet: 10.5.0.0/16 gateway: 10.5.0.1
Thanks in advance.