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
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.
1. The script should open `http://0.0.0.0:5000/` if specifying the IPv4 option,
47
49
or `http://[::]:5000/` for IPv6, in your default browser.
48
50
2. You should see the text on the page itself change to read `Success!`.
51
+
52
+
## port
53
+
54
+
### auto
55
+
56
+
Specifying `auto` as `port` will try to connect the server to the default port `8080` and if not available it will automatically search for another free port.
57
+
58
+
```console
59
+
npx webpack serve --open-target --port auto
60
+
```
61
+
62
+
#### What Should Happen
63
+
64
+
1. The script should open `http://localhost:8080/` in your default browser.
65
+
2. You should see the text on the page itself change to read `Success!`.
66
+
3. Keep the server open and switch to a new terminal window.
67
+
4. Run the script once again.
68
+
5. The script should open `http://localhost:8081/` (or any other port if it is not free) in your default browser.
0 commit comments