UNPKG

@mintlify/previewing

Version:

Preview Mintlify docs locally

12 lines (11 loc) 346 B
import os from 'os'; export const getLocalNetworkIp = () => { const interfaces = os.networkInterfaces(); for (const name of Object.keys(interfaces)) { for (const iface of interfaces[name] || []) { if (iface.family === 'IPv4' && !iface.internal) { return iface.address; } } } };