Skip to content

[solved] Can't connect to Browser Sync Server from network #2054

Closed

Description

@m4r1vs

I recently tried to test my Web App with Browser sync and everything worked just fine when I was accessing it on the same PC (localhost and the external IP worked both). But I also tried to access it from my phone connected to the same network. I just got a timeout message in Chrome Mobile and couldn't connect to it (No error in Bash). Running it natively on Windows worked and on an Ubuntu VM too.
I'm using Microsoft Windows [Version 10.0.15063.250]

Edit: It's still not working on new insider build 16184

Edit 2:
It's working after opening TCP Port 3000 in Windows Firewall :)

Activity

  1. aseering commented on May 5, 2017

    @aseering
    Contributor

    Hi Marius Niveri (@m4r1vs) -- is there any chance that these connections are being blocked by your firewall configuration? WSL currently doesn't always interact well with firewalls; even Windows Defender has some known limitations, and there are major bugs with older versions of some third-party firewalls.

    (Other non-firewall-related networking issues have also been reported against WSL; I don't know their status. But I figure it's worth double-checking about the firewall first.)

  2. m4r1vs commented on May 5, 2017

    @m4r1vs
    Author

    Thank you Adam Seering (@aseering) ,
    It was the Windows Build in Firewall, I've deactivated both and it worked great. Do you know if there's anything planned to fix that in the future?

  3. changed the title [-]Can't connect to Browser Sync Server from network[/-] [+][solved] Can't connect to Browser Sync Server from network[/+] on May 5, 2017
  4. PavalEscoba commented on Oct 13, 2017

    @PavalEscoba

    it helped. thank you:)

  5. roberthpereira commented on Jun 2, 2018

    @roberthpereira
  6. yosrimhamdi commented on Dec 23, 2020

    @yosrimhamdi

    change your network from public to private. this has fixed my problem

  7. mxxrten commented on May 27, 2025

    @mxxrten

    My problem was fixed by doing this:
    WSL2 does not share the Windows host IP (192.168.40.x) directly. Even if your firewall is open and the port is listening, WSL2 is in a virtualized network and cannot be reached from other devices on your LAN by default.

    In Powershell do:

    wsl hostname -I
    

    Which gave 172.26.203.191
    Then in Powershell (as admin) do:

    netsh interface portproxy add v4tov4 listenport=4000 listenaddress=192.168.40.20 connectport=4000 connectaddress=172.26.203.191
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions