Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2112·browser-sync

sefedrs

Author: wilkee29Created Mar 11, 2026Updated Mar 11, 2026

I think I may have figured it out. I'm pointing the "proxy" to Vagrant's IP address, defining the desired "host" URL, opening it, and then I also had to add an extra entry to my hosts file to point the desired "host" URL to my local IP address. My browser then opens "lenovogaming.local:3000" that points to my local IP address, and my local IP address points to the "proxy" IP address. I hope this helps someone else in need.

Gulp

gulp.task('webserver', function() {
    browserSync.init({
        host: 'lenovogaming.local',
        open: 'external',
        proxy: 'http://192.168.33.10'
    });
});

Originally posted by @ryanaltvater in #1124

Source: BrowserSync/browser-sync

View original on GitHubView discussion on GitHub