�PNG IHDR � � ;�� �IDATx��ܻn�0���K�� �)(�pA������7�LeG{�� �§㻢|��ذaÆ 6lذaÆ 6lذaÆ 6lom��$^�y���ذag�5 bÆ 6lذaÆ 6lذa{���� 6lذaÆ �`����}H�Fkm�,�m����Ӫ���ô�ô!��x�|'ܢ˟;�E:���9�&ᶒ�}�{�v]�n&�6� �h��_��t�ڠ͵-ҫ���Z;��Z$�.�P���k�ž)�!��o���>}l�eQfJ�T��u і���چ��\��X=8��Rن4`Vw�l�>����n�G�^��i�s��"ms�$�u��i��?w�bs[m�6�K4���O���.�4��%����/����b�C%��t��M�ז� �-l�G6�mrz2���s�%�9��s@���-�k�9�=���)������k�B5����\��+͂�Zsٲ��Rn��~G���R���C������wIcI��n7jJ���hۛNCS|���j0��8y�iHKֶۛ�k�Ɉ+;Sz������L /��F�*\��Ԕ�#"5��m�2��[S��������=�g��n�a�P�e�ғ�L�� lذaÆ 6l�^k��̱aÆ 6lذaÆ 6lذa;���� �_��ذaÆ 6lذaÆ 6lذaÆ ���R��� IEND�B` # internal-ip [](https://travis-ci.com/github/sindresorhus/internal-ip) > Get your internal IP address ## Install ``` $ npm install internal-ip ``` ## Usage ```js const internalIp = require('internal-ip'); (async () => { console.log(await internalIp.v6()); //=> 'fe80::1' console.log(await internalIp.v4()); //=> '10.0.0.79' })(); console.log(internalIp.v6.sync()) //=> 'fe80::1' console.log(internalIp.v4.sync()) //=> '10.0.0.79' ``` The module returns the address of the internet-facing interface, as determined from the default gateway. When the address cannot be determined for any reason, `undefined` will be returned. The module relies on operating systems tools. On Linux and Android, the `ip` command must be available, which depending on distribution might not be installed by default. It is usually provided by the `iproute2` package. `.v4.sync()` and `.v6.sync()` are not supported in browsers and just return `undefined`. ## Related - [internal-ip-cli](https://github.com/sindresorhus/internal-ip-cli) - CLI for this module - [public-ip](https://github.com/sindresorhus/public-ip) - Get your public IP address - [default-gateway](https://github.com/silverwind/default-gateway) - Get your default gateway address ---