Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External doesn't generated an IP by default #1967

Open
florianbouvot opened this issue May 30, 2022 · 3 comments
Open

External doesn't generated an IP by default #1967

florianbouvot opened this issue May 30, 2022 · 3 comments

Comments

@florianbouvot
Copy link

florianbouvot commented May 30, 2022

Issue details

Since some weeks, when I start Browsersync everything work but external generate https://false:3000 instead of an URL with my current IP.

I can force IP using host but it's not practical especially when you change places frequently.

I make a clean install of my Macbook this weekend but same issue.

Capture d’écran 2022-05-30 à 09 17 28

Is there a way to automatically get the current IP URL ?

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.27.10 ]
  • Node [ 18.2.0 ]
  • Npm [ 8.11.0 ]

Affected platforms

I'm working on macOS 12.4

Browsersync use-case

I use Browsersync with Laravel mix (or sometimes with Eleventy)

Laravel Mix config

...
mix.browserSync({
    proxy: 'https://tb-cms.test',
    files: [
      'src/fonts/**/*.{woff,woff2}',
      'src/img/**/*.{ico,gif,jpg,png,svg}',
      'App/views/**/*.{html,twig}',
      'App/assets/css/*.css',
    ],
  })
...

Eleventy config

eleventyConfig.setBrowserSyncConfig({
    files: [
      'src/assets/fonts/**/*.{woff,woff2}',
      'src/assets/img/**/*.{ico,gif,jpg,png,svg}',
      'dist/assets/css/*.css',
    ],
  });
@florianbouvot florianbouvot changed the title External doesn't use IP by default External doesn't generated an IP by default May 30, 2022
@christiaansnoei
Copy link

I've been having this issue for two days now.

@mattweb
Copy link

mattweb commented Jul 1, 2022

Same here. I don’t know when it stopped working. I just tried with older versions of browsersync and a very reduced test case, but it’s always the same.

Maybe it was introduced by macOS 12.4 which was released May 16, 2022? Difficult to test though ;)

@christiaansnoei Are you on macOS 12.4, too?

@christiaansnoei
Copy link

Same here. I don’t know when it stopped working. I just tried with older versions of browsersync and a very reduced test case, but it’s always the same.

Maybe it was introduced by macOS 12.4 which was released May 16, 2022? Difficult to test though ;)

@christiaansnoei Are you on macOS 12.4, too?

Older projects that previously worked correctly no longer work anymore. These were all Sage (Roots) projects.

Nowadays with Sage 10 you don't have to use browser sync to view your project on different devices via an external IP. So for now this is no longer an issue for me but it is still strange that it stopped working.

I am indeed working on a MacOS 12.4 computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants