Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webextensions/local-ip-addresses-and-hostnames

Get local IP addresses and hostnames
https://github.com/webextensions/local-ip-addresses-and-hostnames

Last synced: about 2 months ago
JSON representation

Get local IP addresses and hostnames

Awesome Lists containing this project

README

        

# 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']```