Skip to content

webextensions/local-ip-addresses-and-hostnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-ip-addresses-and-hostnames

Get local IP addresses and hostnames

Examples:

getLocalIpAddresses() = ['127.0.0.1', '192.168.1.101', '10.0.0.101']

getLocalHostnames() = ['localhost', 'example.com']

getLocalIpAddressesAndHostnames() = ['127.0.0.1', '192.168.1.101', 'localhost', '10.0.0.101', 'example.com']