Skip to content

Instantly share code, notes, and snippets.

@eriktrom
Created July 17, 2016 21:45
Show Gist options
  • Save eriktrom/88e28ad0bfa80b37ed6caecb743bf2ef to your computer and use it in GitHub Desktop.
Save eriktrom/88e28ad0bfa80b37ed6caecb743bf2ef to your computer and use it in GitHub Desktop.
os.networkInterfaces() on osx el-capitan (10.11.1 (15B42))
{ lo0:
[ { address: '::1',
netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
family: 'IPv6',
mac: '00:00:00:00:00:00',
scopeid: 0,
internal: true },
{ address: '127.0.0.1',
netmask: '255.0.0.0',
family: 'IPv4',
mac: '00:00:00:00:00:00',
internal: true },
{ address: 'fe80::1',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: '00:00:00:00:00:00',
scopeid: 1,
internal: true } ],
en0:
[ { address: 'fe80::60c:ceff:fedf:abfc',
netmask: 'ffff:ffff:ffff:ffff::',
family: 'IPv6',
mac: '04:0c:ce:df:ab:fc',
scopeid: 4,
internal: false },
{ address: '10.0.1.11',
netmask: '255.255.255.0',
family: 'IPv4',
mac: '04:0c:ce:df:ab:fc',
internal: false } ] }
@eriktrom
Copy link
Author

/etc/hosts contains:

127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment