Storybook opens local IP address instead of localhost
See original GitHub issueDescribe the bug
This started happening pretty recently, although I am not sure when I noticed it. When I run start-storybook -p 8080 -s public --no-dll
, my browser opens http://192.168.1.100:8080/
instead of http://localhost:8080/
. It’s quite annoying as I usually want to open localhost and I often have that tab already open, so all that should happen is Storybook loads inside that browser tab. It used to work like this until recently.
To Reproduce Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior Browser opens the localhost address
Screenshots If applicable, add screenshots to help explain your problem.
Code snippets If applicable, add code samples to help explain your problem.
System Environment Info:
System: OS: macOS 11.1 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Binaries: Node: 12.20.1 - ~/.nvm/versions/node/v12.20.1/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 6.14.9 - ~/git/banff/webapp/node_modules/.bin/npm Browsers: Chrome: 87.0.4280.141 Firefox: 78.0.2 Safari: 14.0.2 npmPackages: @storybook/addon-a11y: 6.1.14 => 6.1.14 @storybook/addon-actions: 6.1.14 => 6.1.14 @storybook/addon-backgrounds: 6.1.14 => 6.1.14 @storybook/addon-jest: 6.1.14 => 6.1.14 @storybook/addon-knobs: 6.1.14 => 6.1.14 @storybook/addon-links: 6.1.14 => 6.1.14 @storybook/addon-storysource: 6.1.14 => 6.1.14 @storybook/addons: 6.1.14 => 6.1.14 @storybook/preset-create-react-app: 3.1.5 => 3.1.5 @storybook/react: 6.1.14 => 6.1.14
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:6 (4 by maintainers)
Top GitHub Comments
Good golly!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.17 containing PR #13812 that references this issue. Upgrade today to the
@latest
NPM tag to try it out!Closing this issue. Please re-open if you think there’s still more to do.
Ermahgerd!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-alpha.22 containing PR #13812 that references this issue. Upgrade today to the
@next
NPM tag to try it out!