BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io

Home Page:https://discord.gg/2d2xUThp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

External doesn't generated an IP by default

florianbouvot opened this issue · comments

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',
    ],
  });

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

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?

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.