diff --git a/src/utils/getIp.js b/src/utils/getIp.js index 4b30717..a740d22 100644 --- a/src/utils/getIp.js +++ b/src/utils/getIp.js @@ -3,4 +3,4 @@ import { networkInterfaces } from 'os'; export const getIp = () => Object.values(networkInterfaces()) .flat() - .find(ip => ip.family == 'IPv4' && !ip.internal).address; + .find(ip => (ip.family == 'IPv4' || ip.family == 4) && !ip.internal).address;