MCPcopy
hub / github.com/webpack/webpack-dev-server / logInternalIPs

Function logInternalIPs

examples/api/find-ip/app.js:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import WebpackDevServer from "../../../lib/Server.js";
2
3const logInternalIPs = async () => {
4 const localIPv4 = WebpackDevServer.findIp("v4", false);
5 const localIPv6 = WebpackDevServer.findIp("v6", false);
6
7 console.log("Local IPv4 address:", localIPv4);
8 console.log("Local IPv6 address:", localIPv6);
9};
10
11logInternalIPs();

Callers 1

app.jsFile · 0.85

Calls 1

findIpMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…