You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/cli/host-and-port/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,30 @@ _This also works with IPv6_
17
17
npm run webpack-dev-server -- --open --port 5000 --host ::
18
18
```
19
19
20
+
## local-ip
21
+
22
+
Specifying `local-ip` as `host` will try to resolve the `host` option as your local `IPv4` address if available, if `IPv4` is not available it will try to resolve your local `IPv6` address.
23
+
24
+
```console
25
+
npm run webpack-dev-server -- --open --port 5000 --host local-ip
26
+
```
27
+
28
+
## local-ipv4
29
+
30
+
Specifying `local-ipv4` as `host` will try to resolve the `host` option as your local `IPv4` address.
31
+
32
+
```console
33
+
npm run webpack-dev-server -- --open --port 5000 --host local-ipv4
34
+
```
35
+
36
+
## local-ipv6
37
+
38
+
Specifying `local-ipv6` as `host` will try to resolve the `host` option as your local `IPv6` address.
39
+
40
+
```console
41
+
npm run webpack-dev-server -- --open --port 5000 --host local-ipv6
42
+
```
43
+
20
44
## What Should Happen
21
45
22
46
1. The script should open `http://0.0.0.0:5000/` if specifying the IPv4 option,
0 commit comments