question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook opens local IP address instead of localhost

See original GitHub issue

Describe 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:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
shilmancommented, Feb 4, 2021

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!

npx sb upgrade

Closing this issue. Please re-open if you think there’s still more to do.

0reactions
shilmancommented, Feb 5, 2021

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!

npx sb upgrade --prerelease
Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI options - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
ASP .NET served on local ip not localhost - Stack Overflow
1 Answer 1 · Open the IIS, and select your site. Go to the bindings. · Add new HTTP binding. Keep the Hostname...
Read more >
ngrok Step-by-Step Guide: Easily Share Your Local Server
Is Local Tunneling Secure? The connection tunnel established by ngrok is secure and can only transmit data to the localhost port you have...
Read more >
Not able to access localhost via local IP - Apple Stack Exchange
On my Mac I can access the server via http://localhost:3000/ . Now all it should take is to replace localhost with my Mac's...
Read more >
Localhost works but Computer Name does not - Server Fault
Is that the ip address of your network connection? If that is the case, then you probably have to open up port 80...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found